{
  "info": {
    "_postman_id": "3ed15504-dc8e-4718-a9da-74dd1f417a2d",
    "name": "API Externa - Template Default Postman",
    "description": "Para este template, efetuamos a criação de três variáveis a serem utilizadas nesta coleção, sendo:\n\n- `ambiente` a qual irá armazenar o ambiente que deseja efetuar as requisições, podendo ser\n    \n    - “app” para ambiente de produção\n        \n    - “sandbox” para o ambiente de testes\n        \n- `application-token` a qual irá armazenar o token do seu aplicativo\n    \n- `company-token` a qual irá armazenar o token da conta que deseja integrar\n    \n\nPara ter acesso a estas variáveis, poderá acessar o seguinte caminho, após ter completado a importação deste template:\n\n- Clicar na pasta principal da coleção\n    \n\n<img src=\"https://content.pstmn.io/2e416ce8-336a-4300-8128-8533b7f5f6b6/aW1hZ2VtMS5wbmc=\" alt=\"\">\n\n- No overview da coleção, clicar na aba “Variables”\n    \n\n<img src=\"https://content.pstmn.io/a6e383bf-372c-440d-b1b2-4142738e32ca/aW1hZ2VtMi5wbmc=\" alt=\"\">\n\nApós, basta preencher os valores esperados no campo “Current value”, assim, os locais em que as variáveis foram utilizadas, serão utilizados.",
    "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json",
    "_exporter_id": "41332958"
  },
  "item": [
    {
      "name": "Status API-MERCOS",
      "item": [
        {
          "name": "ObterStatus",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{application-token}}",
                "type": "text"
              },
              {
                "key": "CompanyToken",
                "value": "{{company-token}}",
                "type": "text"
              },
              {
                "key": "ContentType",
                "value": "application/json",
                "type": "text"
              }
            ],
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v1/token_auth_status",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v1",
                "token_auth_status"
              ]
            }
          },
          "response": []
        }
      ]
    },
    {
      "name": "Produto",
      "item": [
        {
          "name": "BuscaTodosProdutos",
          "event": [
            {
              "listen": "test",
              "script": {
                "exec": [
                  "pm.test(\"Successful POST request\", function () {",
                  "    pm.expect(pm.response.code).to.be.oneOf([200,201,202]);",
                  "});"
                ],
                "type": "text/javascript"
              }
            }
          ],
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{application-token}}",
                "type": "text"
              },
              {
                "key": "CompanyToken",
                "value": "{{company-token}}",
                "type": "text"
              },
              {
                "key": "ContentType",
                "value": "application/json",
                "type": "text"
              }
            ],
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v1/produtos?alterado_apos={{$timestamp}}",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v1",
                "produtos"
              ],
              "query": [
                {
                  "key": "alterado_apos",
                  "value": "{{$timestamp}}"
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "BuscaUmProduto",
          "event": [
            {
              "listen": "test",
              "script": {
                "exec": [
                  "pm.test(\"Successful POST request\", function () {",
                  "    pm.expect(pm.response.code).to.be.oneOf([200,201,202]);",
                  "});"
                ],
                "type": "text/javascript"
              }
            }
          ],
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{application-token}}",
                "type": "text"
              },
              {
                "key": "CompanyToken",
                "value": "{{company-token}}",
                "type": "text"
              },
              {
                "key": "ContentType",
                "value": "application/json",
                "type": "text"
              }
            ],
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v1/produtos/{{produto_id}}",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v1",
                "produtos",
                "{{produto_id}}"
              ]
            }
          },
          "response": []
        },
        {
          "name": "IncluiNovoProduto",
          "event": [
            {
              "listen": "test",
              "script": {
                "exec": [
                  "pm.test(\"Successful POST request\", function () {",
                  "    pm.expect(pm.response.code).to.be.oneOf([200,201,202]);",
                  "});",
                  "",
                  "pm.environment.set(\"produto_id\", postman.getResponseHeader(\"MeusPedidosID\"));",
                  "",
                  ""
                ],
                "type": "text/javascript",
                "packages": {},
                "requests": {}
              }
            }
          ],
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{application-token}}",
                "type": "text"
              },
              {
                "key": "CompanyToken",
                "value": "{{company-token}}",
                "type": "text"
              },
              {
                "key": "ContentType",
                "value": "application/json",
                "type": "text"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n    \"nome\": \"Produto Teste - Integração Mercos\",\n    \"comissao\": null,\n    \"codigo\": \"00001\",\n    \"unidade\": \"Un\",\n    \"observacoes\": \"Cadastro via API\",\n    \"codigo_ncm\": \"00000000\",\n    \"preco_tabela\": 100,\n    \"preco_minimo\": null,\n    \"moeda\": \"0\",\n    \"saldo_estoque\": null,\n    \"ipi\": null,\n    \"tipo_ipi\": \"P\",\n    \"st\": null,\n    \"excluido\": false,\n    \"ativo\": true,\n    \"categoria_id\": null,\n    \"multiplo\": null,\n    \"peso_bruto\": 10.000,\n    \"largura\": 5,\n    \"altura\": 5,\n    \"comprimento\": 5,\n    \"peso_dimensoes_unitario\": false,\n    \"exibir_b2b\": true\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v1/produtos",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v1",
                "produtos"
              ]
            }
          },
          "response": []
        },
        {
          "name": "IncluiNovoProdutoGrade",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{application-token}}",
                "type": "text"
              },
              {
                "key": "CompanyToken",
                "value": "{{company-token}}",
                "type": "text"
              },
              {
                "key": "ContentType",
                "value": "application/json",
                "type": "text"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n    \"nome\": \"Produto Teste Grade - Integração Mercos\",\n    \"comissao\": null,\n    \"codigo\": \"00002\",\n    \"unidade\": \"Un\",\n    \"observacoes\": \"Cadastro via API\",\n    \"codigo_ncm\": \"00000000\",\n    \"preco_tabela\": 100,\n    \"preco_minimo\": null,\n    \"moeda\": \"0\",\n    \"saldo_estoque\": null,\n    \"ipi\": null,\n    \"tipo_ipi\": \"P\",\n    \"st\": null,\n    \"excluido\": false,\n    \"ativo\": true,\n    \"categoria_id\": null,\n    \"multiplo\": null,\n    \"peso_bruto\": 10.000,\n    \"largura\": 5,\n    \"altura\": 5,\n    \"comprimento\": 5,\n    \"peso_dimensoes_unitario\": false,\n    \"exibir_b2b\": true,\n    \"precos_especificos\": false,\n    \"produtos_grade\": [\n        {\n            \"codigo\": \"00002-2\",\n            \"itens_variacoes_nomes\": [\n                {\n                    \"Tamanho\": \"P\"\n                }\n            ],\n            \"itens_variacoes_ids\": [\n                1\n            ],\n            \"exibir_no_b2b\": true,\n            \"ativo\": true,\n            \"excluido\": false\n        }\n    ]\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v1/produtos",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v1",
                "produtos"
              ]
            }
          },
          "response": []
        },
        {
          "name": "AlteraProduto",
          "event": [
            {
              "listen": "test",
              "script": {
                "exec": [
                  "pm.test(\"Successful POST request\", function () {",
                  "    pm.expect(pm.response.code).to.be.oneOf([200,201,202]);",
                  "});"
                ],
                "type": "text/javascript",
                "packages": {},
                "requests": {}
              }
            }
          ],
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{application-token}}",
                "type": "text"
              },
              {
                "key": "CompanyToken",
                "value": "{{company-token}}",
                "type": "text"
              },
              {
                "key": "ContentType",
                "value": "application/json",
                "type": "text"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n    \"nome\": \"Produto Teste - Integração Mercos - Alterado\",\n    \"comissao\": null,\n    \"codigo\": \"00001\",\n    \"unidade\": \"Un\",\n    \"observacoes\": \"Atualização via API\",\n    \"codigo_ncm\": \"00000000\",\n    \"preco_tabela\": 200,\n    \"preco_minimo\": null,\n    \"moeda\": \"0\",\n    \"saldo_estoque\": null,\n    \"ipi\": null,\n    \"tipo_ipi\": \"P\",\n    \"st\": null,\n    \"excluido\": false,\n    \"ativo\": true,\n    \"categoria_id\": null,\n    \"multiplo\": null,\n    \"peso_bruto\": 5.000,\n    \"largura\": 10,\n    \"altura\": 10,\n    \"comprimento\": 10,\n    \"peso_dimensoes_unitario\": false,\n    \"exibir_b2b\": true\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v1/produtos/{{produto_id}}",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v1",
                "produtos",
                "{{produto_id}}"
              ]
            }
          },
          "response": []
        },
        {
          "name": "AlteraProdutoGrade",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{application-token}}",
                "type": "text"
              },
              {
                "key": "CompanyToken",
                "value": "{{company-token}}",
                "type": "text"
              },
              {
                "key": "ContentType",
                "value": "application/json",
                "type": "text"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n    \"nome\": \"Produto Teste Grade - Integração Mercos - Alterado\",\n    \"comissao\": null,\n    \"codigo\": \"00002\",\n    \"unidade\": \"Un\",\n    \"observacoes\": \"Atualização via API\",\n    \"codigo_ncm\": \"00000000\",\n    \"preco_tabela\": 300,\n    \"preco_minimo\": null,\n    \"moeda\": \"0\",\n    \"saldo_estoque\": null,\n    \"ipi\": null,\n    \"tipo_ipi\": \"P\",\n    \"st\": null,\n    \"excluido\": false,\n    \"ativo\": true,\n    \"categoria_id\": null,\n    \"multiplo\": null,\n    \"peso_bruto\": 6.000,\n    \"largura\": 6,\n    \"altura\": 6,\n    \"comprimento\": 6,\n    \"peso_dimensoes_unitario\": false,\n    \"exibir_b2b\": true,\n    \"precos_especificos\": false,\n    \"produtos_grade\": [\n        {\n            \"codigo\": \"00002-2\",\n            \"itens_variacoes_nomes\": [\n                {\n                    \"Tamanho\": \"P\"\n                }\n            ],\n            \"itens_variacoes_ids\": [\n                1\n            ],\n            \"exibir_no_b2b\": true,\n            \"ativo\": true,\n            \"excluido\": false\n        }\n    ]\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v1/produtos/{{produto_id}}",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v1",
                "produtos",
                "{{produto_id}}"
              ]
            }
          },
          "response": []
        }
      ]
    },
    {
      "name": "Variações",
      "item": [
        {
          "name": "BuscarTodasVariacoes",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{application-token}}",
                "type": "text"
              },
              {
                "key": "CompanyToken",
                "value": "{{company-token}}",
                "type": "text"
              },
              {
                "key": "ContentType",
                "value": "application/json",
                "type": "text"
              }
            ],
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v1/variacoes/?alterado_apos={{$timestamp}}",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v1",
                "variacoes",
                ""
              ],
              "query": [
                {
                  "key": "alterado_apos",
                  "value": "{{$timestamp}}"
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "BuscaUmaVariacao",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{application-token}}",
                "type": "text"
              },
              {
                "key": "CompanyToken",
                "value": "{{company-token}}",
                "type": "text"
              },
              {
                "key": "ContentType",
                "value": "application/json",
                "type": "text"
              }
            ],
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v1/variacoes/{{variacao_id}}",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v1",
                "variacoes",
                "{{variacao_id}}"
              ]
            }
          },
          "response": []
        },
        {
          "name": "IncluiNovaVariacao",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{application-token}}",
                "type": "text"
              },
              {
                "key": "CompanyToken",
                "value": "{{company-token}}",
                "type": "text"
              },
              {
                "key": "ContentType",
                "value": "application/json",
                "type": "text"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n    \"nome\": \"Tamanho\",\n    \"ordem\": \"1\",\n    \"itens_variacao\": [\n        {\n            \"nome\": \"P\",\n            \"excluido\": false\n        },\n        {\n            \"nome\": \"M\",\n            \"excluido\": false\n        }\n    ]\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v1/variacoes/",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v1",
                "variacoes",
                ""
              ]
            }
          },
          "response": []
        },
        {
          "name": "AlteraVariacao",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{application-token}}",
                "type": "text"
              },
              {
                "key": "CompanyToken",
                "value": "{{company-token}}",
                "type": "text"
              },
              {
                "key": "ContentType",
                "value": "application/json",
                "type": "text"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n     \"nome\": \"Tamanhos - Alterado\",\n     \"ordem\": \"1\",\n     \"itens_variacao\": [\n          {\n               \"nome\": \"P\",\n               \"excluido\": false\n          },\n          {\n               \"nome\": \"M\",\n               \"excluido\": true\n          }\n     ]\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v1/variacoes/{{variacao_id}}",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v1",
                "variacoes",
                "{{variacao_id}}"
              ]
            }
          },
          "response": []
        }
      ]
    },
    {
      "name": "ImagensProduto",
      "item": [
        {
          "name": "BuscarHashesImagens",
          "protocolProfileBehavior": {
            "followRedirects": true,
            "disableUrlEncoding": false,
            "disableCookies": false
          },
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{application-token}}",
                "type": "text"
              },
              {
                "key": "CompanyToken",
                "value": "{{company-token}}",
                "type": "text"
              },
              {
                "key": "ContentType",
                "value": "application/json",
                "type": "text"
              }
            ],
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v1/imagens_produto/{{produto_id}}",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v1",
                "imagens_produto",
                "{{produto_id}}"
              ]
            }
          },
          "response": []
        },
        {
          "name": "IncluiNovaImagemProduto",
          "event": [
            {
              "listen": "test",
              "script": {
                "exec": [
                  "pm.test(\"Successful POST request\", function () {",
                  "    pm.expect(pm.response.code).to.be.oneOf([200,201,202]);",
                  "});",
                  "",
                  "pm.environment.set(\"imagem_produto_id\", postman.getResponseHeader(\"MeusPedidosID\"));",
                  "",
                  ""
                ],
                "type": "text/javascript"
              }
            }
          ],
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{application-token}}",
                "type": "text"
              },
              {
                "key": "CompanyToken",
                "value": "{{company-token}}",
                "type": "text"
              },
              {
                "key": "ContentType",
                "value": "application/json",
                "type": "text"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n     \"produto_id\": {{produto_id}},\n     \"imagem_base64\": \"{{imagem_convertida_em_base_64}}\",\n     \"ordem\": 1\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v1/imagens_produto",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v1",
                "imagens_produto"
              ]
            }
          },
          "response": []
        }
      ]
    },
    {
      "name": "AjusteEstoque",
      "item": [
        {
          "name": "AjustarEstoqueProduto",
          "event": [
            {
              "listen": "test",
              "script": {
                "exec": [
                  "pm.test(\"Successful POST request\", function () {",
                  "    pm.expect(pm.response.code).to.be.oneOf([200,201,202]);",
                  "});"
                ],
                "type": "text/javascript",
                "packages": {},
                "requests": {}
              }
            }
          ],
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{application-token}}",
                "type": "text"
              },
              {
                "key": "CompanyToken",
                "value": "{{company-token}}",
                "type": "text"
              },
              {
                "key": "ContentType",
                "value": "application/json",
                "type": "text"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n     \"produto_id\": {{produto_id}},\n     \"novo_saldo\": 100\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v1/ajustar_estoque",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v1",
                "ajustar_estoque"
              ]
            }
          },
          "response": []
        }
      ]
    },
    {
      "name": "AjusteEstoqueLote",
      "item": [
        {
          "name": "AjustarEstoqueProdutoEmLote",
          "event": [
            {
              "listen": "test",
              "script": {
                "exec": [
                  "pm.test(\"Successful POST request\", function () {",
                  "    pm.expect(pm.response.code).to.be.oneOf([200,201,202]);",
                  "});"
                ],
                "type": "text/javascript",
                "packages": {},
                "requests": {}
              }
            }
          ],
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{application-token}}",
                "type": "text"
              },
              {
                "key": "CompanyToken",
                "value": "{{company-token}}",
                "type": "text"
              },
              {
                "key": "ContentType",
                "value": "application/json",
                "type": "text"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "[\n     /*\n        limite máximo: 300 produtos\n    */\n     {\n          \"produto_id\": {{produto_id}},\n          \"novo_saldo\": 100\n     },\n     {\n          \"produto_id\": {{produto_id}},\n          \"novo_saldo\": 100\n     }\n]",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v1/ajustar_estoque_em_lote",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v1",
                "ajustar_estoque_em_lote"
              ]
            }
          },
          "response": []
        }
      ]
    },
    {
      "name": "CategoriaProduto",
      "item": [
        {
          "name": "BuscaTodasCategoriasProduto",
          "event": [
            {
              "listen": "test",
              "script": {
                "exec": [
                  "pm.test(\"Successful POST request\", function () {",
                  "    pm.expect(pm.response.code).to.be.oneOf([200,201,202]);",
                  "});"
                ],
                "type": "text/javascript"
              }
            }
          ],
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{application-token}}",
                "type": "text"
              },
              {
                "key": "CompanyToken",
                "value": "{{company-token}}",
                "type": "text"
              },
              {
                "key": "ContentType",
                "value": "application/json",
                "type": "text"
              }
            ],
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v1/categorias?alterado_apos={{$timestamp}}",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v1",
                "categorias"
              ],
              "query": [
                {
                  "key": "alterado_apos",
                  "value": "{{$timestamp}}"
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "BuscaUmaCategoriaProduto",
          "event": [
            {
              "listen": "test",
              "script": {
                "exec": [
                  "pm.test(\"Successful POST request\", function () {",
                  "    pm.expect(pm.response.code).to.be.oneOf([200,201,202]);",
                  "});"
                ],
                "type": "text/javascript"
              }
            }
          ],
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{application-token}}",
                "type": "text"
              },
              {
                "key": "CompanyToken",
                "value": "{{company-token}}",
                "type": "text"
              },
              {
                "key": "ContentType",
                "value": "application/json",
                "type": "text"
              }
            ],
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v1/categorias/{{categoria_produto_id}}",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v1",
                "categorias",
                "{{categoria_produto_id}}"
              ]
            }
          },
          "response": []
        },
        {
          "name": "IncluiNovaCategoriaProduto",
          "event": [
            {
              "listen": "test",
              "script": {
                "exec": [
                  "pm.test(\"Successful POST request\", function () {",
                  "    pm.expect(pm.response.code).to.be.oneOf([200,201,202]);",
                  "});",
                  "",
                  "pm.environment.set(\"categoria_produto_id\", postman.getResponseHeader(\"MeusPedidosID\"));"
                ],
                "type": "text/javascript",
                "packages": {},
                "requests": {}
              }
            }
          ],
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{application-token}}",
                "type": "text"
              },
              {
                "key": "CompanyToken",
                "value": "{{company-token}}",
                "type": "text"
              },
              {
                "key": "ContentType",
                "value": "application/json",
                "type": "text"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n    \"nome\": \"Nova categoria\",\n    \"categoria_pai_id\": null,\n    \"excluido\": false\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v1/categorias",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v1",
                "categorias"
              ]
            }
          },
          "response": []
        },
        {
          "name": "AlteraCategoriaProduto",
          "event": [
            {
              "listen": "test",
              "script": {
                "exec": [
                  "pm.test(\"Successful POST request\", function () {",
                  "    pm.expect(pm.response.code).to.be.oneOf([200,201,202]);",
                  "});"
                ],
                "type": "text/javascript",
                "packages": {},
                "requests": {}
              }
            }
          ],
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{application-token}}",
                "type": "text"
              },
              {
                "key": "CompanyToken",
                "value": "{{company-token}}",
                "type": "text"
              },
              {
                "key": "ContentType",
                "value": "application/json",
                "type": "text"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n    \"nome\": \"Nova categoria - Alterada\",\n    \"categoria_pai_id\": null,\n    \"excluido\": false\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v1/categorias/{{categoria_produto_id}}",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v1",
                "categorias",
                "{{categoria_produto_id}}"
              ]
            }
          },
          "response": []
        }
      ]
    },
    {
      "name": "CategoriaCliente",
      "item": [
        {
          "name": "VincularClienteCategoria",
          "event": [
            {
              "listen": "test",
              "script": {
                "exec": [
                  "pm.test(\"Successful POST request\", function () {",
                  "    pm.expect(pm.response.code).to.be.oneOf([200,201,202]);",
                  "});"
                ],
                "type": "text/javascript"
              }
            }
          ],
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{application-token}}",
                "type": "text"
              },
              {
                "key": "CompanyToken",
                "value": "{{company-token}}",
                "type": "text"
              },
              {
                "key": "ContentType",
                "value": "application/json",
                "type": "text"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n     \"cliente_id\": {{cliente_id}},\n     \"categorias_liberadas\": [\n          {{categoria_produto_id}}\n     ]\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v1/clientes_categorias",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v1",
                "clientes_categorias"
              ]
            }
          },
          "response": []
        },
        {
          "name": "LiberarTodasCategoriasCliente",
          "event": [
            {
              "listen": "test",
              "script": {
                "exec": [
                  "pm.test(\"Successful POST request\", function () {",
                  "    pm.expect(pm.response.code).to.be.oneOf([200,201,202]);",
                  "});"
                ],
                "type": "text/javascript"
              }
            }
          ],
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{application-token}}",
                "type": "text"
              },
              {
                "key": "CompanyToken",
                "value": "{{company-token}}",
                "type": "text"
              },
              {
                "key": "ContentType",
                "value": "application/json",
                "type": "text"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n     \"cliente_id\": {{cliente_id}}\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v1/clientes_categorias/liberar_todas",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v1",
                "clientes_categorias",
                "liberar_todas"
              ]
            }
          },
          "response": []
        }
      ]
    },
    {
      "name": "TabelasPreco",
      "item": [
        {
          "name": "BuscaTodasTabelasDePreco",
          "event": [
            {
              "listen": "test",
              "script": {
                "exec": [
                  "pm.test(\"Successful POST request\", function () {",
                  "    pm.expect(pm.response.code).to.be.oneOf([200,201,202]);",
                  "});"
                ],
                "type": "text/javascript"
              }
            }
          ],
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{application-token}}",
                "type": "text"
              },
              {
                "key": "CompanyToken",
                "value": "{{company-token}}",
                "type": "text"
              },
              {
                "key": "ContentType",
                "value": "application/json",
                "type": "text"
              }
            ],
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v1/tabelas_preco?alterado_apos={{$timestamp}}",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v1",
                "tabelas_preco"
              ],
              "query": [
                {
                  "key": "alterado_apos",
                  "value": "{{$timestamp}}"
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "BuscaUmaTabelaDePreco",
          "event": [
            {
              "listen": "test",
              "script": {
                "exec": [
                  "pm.test(\"Successful POST request\", function () {",
                  "    pm.expect(pm.response.code).to.be.oneOf([200,201,202]);",
                  "});"
                ],
                "type": "text/javascript"
              }
            }
          ],
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{application-token}}",
                "type": "text"
              },
              {
                "key": "CompanyToken",
                "value": "{{company-token}}",
                "type": "text"
              },
              {
                "key": "ContentType",
                "value": "application/json",
                "type": "text"
              }
            ],
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v1/tabelas_preco/{{tabela_preco_id}}",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v1",
                "tabelas_preco",
                "{{tabela_preco_id}}"
              ]
            }
          },
          "response": []
        },
        {
          "name": "IncluiNovaTabelaDePreco",
          "event": [
            {
              "listen": "test",
              "script": {
                "exec": [
                  "pm.test(\"Successful POST request\", function () {",
                  "    pm.expect(pm.response.code).to.be.oneOf([200,201,202]);",
                  "});",
                  "",
                  "pm.environment.set(\"tabela_preco_id\", postman.getResponseHeader(\"MeusPedidosID\"));",
                  "",
                  ""
                ],
                "type": "text/javascript",
                "packages": {},
                "requests": {}
              }
            }
          ],
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{application-token}}",
                "type": "text"
              },
              {
                "key": "CompanyToken",
                "value": "{{company-token}}",
                "type": "text"
              },
              {
                "key": "ContentType",
                "value": "application/json",
                "type": "text"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n    \"nome\": \"Tabela de Preço Mercos\",\n    \"tipo\": \"P\",\n    \"acrescimo\": null,\n    \"desconto\": null,\n    \"excluido\": false\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v1/tabelas_preco",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v1",
                "tabelas_preco"
              ]
            }
          },
          "response": []
        },
        {
          "name": "AlteraTabelaDePreco",
          "event": [
            {
              "listen": "test",
              "script": {
                "exec": [
                  "pm.test(\"Successful POST request\", function () {",
                  "    pm.expect(pm.response.code).to.be.oneOf([200,201,202]);",
                  "});"
                ],
                "type": "text/javascript",
                "packages": {},
                "requests": {}
              }
            }
          ],
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{application-token}}",
                "type": "text"
              },
              {
                "key": "CompanyToken",
                "value": "{{company-token}}",
                "type": "text"
              },
              {
                "key": "ContentType",
                "value": "application/json",
                "type": "text"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n    \"nome\": \"Tabela de Preço Mercos - Alterado\",\n    \"tipo\": \"P\",\n    \"acrescimo\": null,\n    \"desconto\": null,\n    \"excluido\": false\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v1/tabelas_preco/{{tabela_preco_id}}",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v1",
                "tabelas_preco",
                "{{tabela_preco_id}}"
              ]
            }
          },
          "response": []
        }
      ]
    },
    {
      "name": "TabelasPrecoProduto",
      "item": [
        {
          "name": "BuscaTodasTabelasDePrecoProduto",
          "event": [
            {
              "listen": "test",
              "script": {
                "exec": [
                  "pm.test(\"Successful POST request\", function () {",
                  "    pm.expect(pm.response.code).to.be.oneOf([200,201,202]);",
                  "});"
                ],
                "type": "text/javascript"
              }
            }
          ],
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{application-token}}",
                "type": "text"
              },
              {
                "key": "CompanyToken",
                "value": "{{company-token}}",
                "type": "text"
              },
              {
                "key": "ContentType",
                "value": "application/json",
                "type": "text"
              }
            ],
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v1/produtos_tabela_preco?alterado_apos={{$timestamp}}",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v1",
                "produtos_tabela_preco"
              ],
              "query": [
                {
                  "key": "alterado_apos",
                  "value": "{{$timestamp}}"
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "BuscaUmaTabelaDePrecoProduto",
          "event": [
            {
              "listen": "test",
              "script": {
                "exec": [
                  "pm.test(\"Successful POST request\", function () {",
                  "    pm.expect(pm.response.code).to.be.oneOf([200,201,202]);",
                  "});"
                ],
                "type": "text/javascript"
              }
            }
          ],
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{application-token}}",
                "type": "text"
              },
              {
                "key": "CompanyToken",
                "value": "{{company-token}}",
                "type": "text"
              },
              {
                "key": "ContentType",
                "value": "application/json",
                "type": "text"
              }
            ],
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v1/produtos_tabela_preco/{{tabela_preco_produto_id}}",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v1",
                "produtos_tabela_preco",
                "{{tabela_preco_produto_id}}"
              ]
            }
          },
          "response": []
        },
        {
          "name": "IncluiNovaTabelaDePrecoProduto",
          "event": [
            {
              "listen": "test",
              "script": {
                "exec": [
                  "pm.test(\"Successful POST request\", function () {",
                  "    pm.expect(pm.response.code).to.be.oneOf([200,201,202]);",
                  "});",
                  "",
                  "pm.environment.set(\"tabela_preco_produto_id\", postman.getResponseHeader(\"MeusPedidosID\"));",
                  "",
                  ""
                ],
                "type": "text/javascript",
                "packages": {},
                "requests": {}
              }
            }
          ],
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{application-token}}",
                "type": "text"
              },
              {
                "key": "CompanyToken",
                "value": "{{company-token}}",
                "type": "text"
              },
              {
                "key": "ContentType",
                "value": "application/json",
                "type": "text"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n     \"tabela_id\": {{tabela_preco_id}},\n     \"produto_id\": {{produto_id}},\n     \"preco\": 100\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v1/produtos_tabela_preco",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v1",
                "produtos_tabela_preco"
              ]
            }
          },
          "response": []
        },
        {
          "name": "AlteraTabelaDePrecoProduto",
          "event": [
            {
              "listen": "test",
              "script": {
                "exec": [
                  "pm.test(\"Successful POST request\", function () {",
                  "    pm.expect(pm.response.code).to.be.oneOf([200,201,202]);",
                  "});"
                ],
                "type": "text/javascript",
                "packages": {},
                "requests": {}
              }
            }
          ],
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{application-token}}",
                "type": "text"
              },
              {
                "key": "CompanyToken",
                "value": "{{company-token}}",
                "type": "text"
              },
              {
                "key": "ContentType",
                "value": "application/json",
                "type": "text"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n     \"tabela_id\": {{tabela_preco_id}},\n     \"produto_id\": {{produto_id}},\n     \"preco\": 120\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v1/produtos_tabela_preco/{{tabela_preco_produto_id}}",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v1",
                "produtos_tabela_preco",
                "{{tabela_preco_produto_id}}"
              ]
            }
          },
          "response": []
        }
      ]
    },
    {
      "name": "TabelaPrecoProdutoLote",
      "item": [
        {
          "name": "IncluirNovaTabelaDePrecoProdutoEmLote",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{application-token}}",
                "type": "text"
              },
              {
                "key": "CompanyToken",
                "value": "{{company-token}}",
                "type": "text"
              },
              {
                "key": "ContentType",
                "value": "application/json",
                "type": "text"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "[\n    /*\n        limite máximo de produtos: 300\n    */\n    {\n        \"produto_id\": {{produto_id}},\n        \"tabela_preco_id\": {{tabela_preco_id}},\n        \"preco\": 100\n    },\n    {\n        \"produto_id\": {{produto_id}},\n        \"tabela_preco_id\": {{tabela_preco_id}},\n        \"preco\": 120\n    }\n]",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v1/produtos_tabela_preco",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v1",
                "produtos_tabela_preco"
              ]
            }
          },
          "response": []
        }
      ]
    },
    {
      "name": "TabelaPrecoCliente",
      "item": [
        {
          "name": "VincularClienteTabelaPreco",
          "event": [
            {
              "listen": "test",
              "script": {
                "exec": [
                  "pm.test(\"Successful POST request\", function () {",
                  "    pm.expect(pm.response.code).to.be.oneOf([200,201,202]);",
                  "});"
                ],
                "type": "text/javascript"
              }
            }
          ],
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{application-token}}",
                "type": "text"
              },
              {
                "key": "CompanyToken",
                "value": "{{company-token}}",
                "type": "text"
              },
              {
                "key": "ContentType",
                "value": "application/json",
                "type": "text"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n     \"cliente_id\": {{cliente_id}},\n     \"tabelas_liberadas\": [\n          {{tabela_preco_id}}\n     ]\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v1/clientes_tabela_preco",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v1",
                "clientes_tabela_preco"
              ]
            }
          },
          "response": []
        },
        {
          "name": "LiberarTodasTabelasPrecoCliente",
          "event": [
            {
              "listen": "test",
              "script": {
                "exec": [
                  "pm.test(\"Successful POST request\", function () {",
                  "    pm.expect(pm.response.code).to.be.oneOf([200,201,202]);",
                  "});"
                ],
                "type": "text/javascript"
              }
            }
          ],
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{application-token}}",
                "type": "text"
              },
              {
                "key": "CompanyToken",
                "value": "{{company-token}}",
                "type": "text"
              },
              {
                "key": "ContentType",
                "value": "application/json",
                "type": "text"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n     \"cliente_id\": {{cliente_id}}\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v1/clientes_tabela_preco/liberar_todas",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v1",
                "clientes_tabela_preco",
                "liberar_todas"
              ]
            }
          },
          "response": []
        }
      ]
    },
    {
      "name": "Cliente",
      "item": [
        {
          "name": "BuscaTodosClientes",
          "event": [
            {
              "listen": "test",
              "script": {
                "exec": [
                  "pm.test(\"Successful POST request\", function () {",
                  "    pm.expect(pm.response.code).to.be.oneOf([200,201,202]);",
                  "});"
                ],
                "type": "text/javascript"
              }
            }
          ],
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{application-token}}",
                "type": "text"
              },
              {
                "key": "CompanyToken",
                "value": "{{company-token}}",
                "type": "text"
              },
              {
                "key": "ContentType",
                "value": "application/json",
                "type": "text"
              }
            ],
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v1/clientes?alterado_apos={{$timestamp}}",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v1",
                "clientes"
              ],
              "query": [
                {
                  "key": "alterado_apos",
                  "value": "{{$timestamp}}"
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "BuscaUmCliente",
          "event": [
            {
              "listen": "test",
              "script": {
                "exec": [
                  "pm.test(\"Successful POST request\", function () {",
                  "    pm.expect(pm.response.code).to.be.oneOf([200,201,202]);",
                  "});"
                ],
                "type": "text/javascript"
              }
            }
          ],
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{application-token}}",
                "type": "text"
              },
              {
                "key": "CompanyToken",
                "value": "{{company-token}}",
                "type": "text"
              },
              {
                "key": "ContentType",
                "value": "application/json",
                "type": "text"
              }
            ],
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v1/clientes/{{cliente_id}}",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v1",
                "clientes",
                "{{cliente_id}}"
              ]
            }
          },
          "response": []
        },
        {
          "name": "IncluiNovoCliente",
          "event": [
            {
              "listen": "test",
              "script": {
                "exec": [
                  "pm.test(\"Successful POST request\", function () {",
                  "    pm.expect(pm.response.code).to.be.oneOf([200,201,202]);",
                  "});",
                  "",
                  "pm.environment.set(\"cliente_id\", postman.getResponseHeader(\"MeusPedidosID\"));",
                  "",
                  ""
                ],
                "type": "text/javascript",
                "packages": {},
                "requests": {}
              }
            }
          ],
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{application-token}}",
                "type": "text"
              },
              {
                "key": "CompanyToken",
                "value": "{{company-token}}",
                "type": "text"
              },
              {
                "key": "ContentType",
                "value": "application/json",
                "type": "text"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n    \"razao_social\": \"Loja do Zé LTDA\",\n    \"nome_fantasia\": \"Zé Store\",\n    \"tipo\": \"J\",\n    \"cnpj\": \"46487899000110\",\n    \"inscricao_estadual\": \"ISENTO\",\n    \"suframa\": \"\",\n    \"rua\": \"Rua Abdon Batista\",\n    \"numero\": \"121\",\n    \"complemento\": \"sala 1402\",\n    \"cep\": \"89201010\",\n    \"bairro\": \"Centro\",\n    \"cidade\": \"Joinville\",\n    \"estado\": \"SC\",\n    \"observacao\": \"Cliente com ótimo histórico de pagamentos.\",\n    \"emails\": [\n        {\n            \"email\": \"lucas@zestore.com.br\"\n        }\n    ],\n    \"telefones\": [\n        {\n            \"numero\": \"(21) 1111-1234\"\n        }\n    ],\n    \"contatos\": [\n        {\n            \"id\": 3064357,\n            \"nome\": \"Lucas da Silva\",\n            \"cargo\": \"Gerente de Compras\",\n            \"excluido\": false,\n            \"telefones\": [\n                {\n                    \"id\": 24021707,\n                    \"numero\": \"(21) 1111-1234\",\n                    \"tipo\": \"T\"\n                }\n            ],\n            \"emails\": [\n                {\n                    \"id\": 13623835,\n                    \"email\": \"lucas@zestore.com.br\",\n                    \"tipo\": \"T\"\n                }\n            ]\n        }\n    ],\n    \"nome_excecao_fiscal\": \"Isento\",\n    \"segmento_id\": null,\n    \"rede_id\": null,\n    \"excluido\": false,\n    \"bloqueado_b2b\": true,\n    \"bloqueado\": false,\n    \"motivo_bloqueio_id\": null,\n    \"enderecos_adicionais\": [\n        {\n            \"ultima_alteracao\": \"2023-06-28 15:08:26\",\n            \"cep\": \"89223005\",\n            \"endereco\": \"Av. Rolf Wiest\",\n            \"numero\": \"277\",\n            \"complemento\": \"\",\n            \"bairro\": \"Bom Retiro\",\n            \"cidade\": \"Joinville\",\n            \"estado\": \"SC\",\n            \"id\": 4762589\n        },\n        {\n            \"ultima_alteracao\": \"2023-06-28 15:08:26\",\n            \"cep\": \"89223005\",\n            \"endereco\": \"Av. Rolf Wiest\",\n            \"numero\": \"333\",\n            \"complemento\": \"Sala 1\",\n            \"bairro\": \"Bom Retiro\",\n            \"cidade\": \"Joinville\",\n            \"estado\": \"SC\",\n            \"id\": 4762590\n        }\n    ],\n    \"limite_credito_disponivel\": 10.000,\n    \"limite_credito_total\": 15.000,\n    \"extras\": []\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v1/clientes",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v1",
                "clientes"
              ]
            }
          },
          "response": []
        },
        {
          "name": "AlteraCliente",
          "event": [
            {
              "listen": "test",
              "script": {
                "exec": [
                  "pm.test(\"Successful POST request\", function () {",
                  "    pm.expect(pm.response.code).to.be.oneOf([200,201,202]);",
                  "});"
                ],
                "type": "text/javascript",
                "packages": {},
                "requests": {}
              }
            }
          ],
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{application-token}}",
                "type": "text"
              },
              {
                "key": "CompanyToken",
                "value": "{{company-token}}",
                "type": "text"
              },
              {
                "key": "ContentType",
                "value": "application/json",
                "type": "text"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n    \"razao_social\": \"Loja do Zé LTDA - Alterado\",\n    \"nome_fantasia\": \"Zé Store - Alterado\",\n    \"tipo\": \"J\",\n    \"cnpj\": \"46487899000110\",\n    \"inscricao_estadual\": \"ISENTO\",\n    \"suframa\": \"\",\n    \"rua\": \"Rua Abdon Batista\",\n    \"numero\": \"1121\",\n    \"complemento\": \"sala 1402\",\n    \"cep\": \"89201010\",\n    \"bairro\": \"Centro\",\n    \"cidade\": \"Joinville\",\n    \"estado\": \"SC\",\n    \"observacao\": \"Atualização de cadastro de Cliente\",\n    \"emails\": [\n        {\n            \"email\": \"lucas@zestore.com.br\"\n        }\n    ],\n    \"telefones\": [\n        {\n            \"numero\": \"(21) 1111-1234\"\n        }\n    ],\n    \"contatos\": [\n        {\n            \"id\": 3064357,\n            \"nome\": \"Lucas da Silva\",\n            \"cargo\": \"Gerente de Compras\",\n            \"excluido\": false,\n            \"telefones\": [\n                {\n                    \"id\": 24021707,\n                    \"numero\": \"(21) 1111-1234\",\n                    \"tipo\": \"T\"\n                }\n            ],\n            \"emails\": [\n                {\n                    \"id\": 13623835,\n                    \"email\": \"lucas@zestore.com.br\",\n                    \"tipo\": \"T\"\n                }\n            ]\n        }\n    ],\n    \"nome_excecao_fiscal\": \"Isento\",\n    \"segmento_id\": null,\n    \"rede_id\": null,\n    \"excluido\": false,\n    \"bloqueado_b2b\": true,\n    \"bloqueado\": false,\n    \"motivo_bloqueio_id\": null,\n    \"enderecos_adicionais\": [\n        {\n            \"ultima_alteracao\": \"2023-06-28 15:08:26\",\n            \"cep\": \"89223005\",\n            \"endereco\": \"Av. Rolf Wiest\",\n            \"numero\": \"277\",\n            \"complemento\": \"\",\n            \"bairro\": \"Bom Retiro\",\n            \"cidade\": \"Joinville\",\n            \"estado\": \"SC\",\n            \"id\": 4762589\n        },\n        {\n            \"ultima_alteracao\": \"2023-06-28 15:08:26\",\n            \"cep\": \"89223005\",\n            \"endereco\": \"Av. Rolf Wiest\",\n            \"numero\": \"333\",\n            \"complemento\": \"Sala 1\",\n            \"bairro\": \"Bom Retiro\",\n            \"cidade\": \"Joinville\",\n            \"estado\": \"SC\",\n            \"id\": 4762590\n        }\n    ],\n    \"limite_credito_disponivel\": 1.000,\n    \"limite_credito_total\": 15.000,\n    \"extras\": []\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v1/clientes/{{cliente_id}}",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v1",
                "clientes",
                "{{cliente_id}}"
              ]
            }
          },
          "response": []
        }
      ]
    },
    {
      "name": "MotivoBloqueioCliente",
      "item": [
        {
          "name": "BuscaTodosMotivosBloqueioCliente",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{application-token}}",
                "type": "text"
              },
              {
                "key": "CompanyToken",
                "value": "{{company-token}}",
                "type": "text"
              },
              {
                "key": "ContentType",
                "value": "application/json",
                "type": "text"
              }
            ],
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v1/motivo_de_bloqueio_de_cliente?alterado_apos={{$timestamp}}",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v1",
                "motivo_de_bloqueio_de_cliente"
              ],
              "query": [
                {
                  "key": "alterado_apos",
                  "value": "{{$timestamp}}"
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "BuscaUmMotivoBloqueioCliente",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{application-token}}",
                "type": "text"
              },
              {
                "key": "CompanyToken",
                "value": "{{company-token}}",
                "type": "text"
              },
              {
                "key": "ContentType",
                "value": "application/json",
                "type": "text"
              }
            ],
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v1/motivo_de_bloqueio_de_cliente/{{motivo_bloqueio_cliente_id}}",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v1",
                "motivo_de_bloqueio_de_cliente",
                "{{motivo_bloqueio_cliente_id}}"
              ]
            }
          },
          "response": []
        },
        {
          "name": "IncluiNovoMotivoBloqueioCliente",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{application-token}}",
                "type": "text"
              },
              {
                "key": "CompanyToken",
                "value": "{{company-token}}",
                "type": "text"
              },
              {
                "key": "ContentType",
                "value": "application/json",
                "type": "text"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n    \"motivo\": \"Inadimplente\",\n    \"excluido\": false\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v1/motivo_de_bloqueio_de_cliente",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v1",
                "motivo_de_bloqueio_de_cliente"
              ]
            }
          },
          "response": []
        },
        {
          "name": "AlterarMotivoBloqueioCliente",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{application-token}}",
                "type": "text"
              },
              {
                "key": "CompanyToken",
                "value": "{{company-token}}",
                "type": "text"
              },
              {
                "key": "ContentType",
                "value": "application/json",
                "type": "text"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n     \"motivo\": \"Inadimplente a mais de 100 dias\",\n     \"excluido\": false\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v1/motivo_de_bloqueio_de_cliente/{{motivo_bloqueio_cliente_id}}",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v1",
                "motivo_de_bloqueio_de_cliente",
                "{{motivo_bloqueio_cliente_id}}"
              ]
            }
          },
          "response": []
        }
      ]
    },
    {
      "name": "RedeCliente",
      "item": [
        {
          "name": "BuscaTodasRedesDeClientes",
          "event": [
            {
              "listen": "test",
              "script": {
                "exec": [
                  "pm.test(\"Successful POST request\", function () {",
                  "    pm.expect(pm.response.code).to.be.oneOf([200,201,202]);",
                  "});"
                ],
                "type": "text/javascript"
              }
            }
          ],
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{application-token}}",
                "type": "text"
              },
              {
                "key": "CompanyToken",
                "value": "{{company-token}}",
                "type": "text"
              },
              {
                "key": "ContentType",
                "value": "application/json",
                "type": "text"
              }
            ],
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v1/redes?alterado_apos={{$timestamp}}",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v1",
                "redes"
              ],
              "query": [
                {
                  "key": "alterado_apos",
                  "value": "{{$timestamp}}"
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "BuscaUmaRedeDeClientes",
          "event": [
            {
              "listen": "test",
              "script": {
                "exec": [
                  "pm.test(\"Successful POST request\", function () {",
                  "    pm.expect(pm.response.code).to.be.oneOf([200,201,202]);",
                  "});"
                ],
                "type": "text/javascript"
              }
            }
          ],
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{application-token}}",
                "type": "text"
              },
              {
                "key": "CompanyToken",
                "value": "{{company-token}}",
                "type": "text"
              },
              {
                "key": "ContentType",
                "value": "application/json",
                "type": "text"
              }
            ],
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v1/redes/{{rede_cliente_id}}",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v1",
                "redes",
                "{{rede_cliente_id}}"
              ]
            }
          },
          "response": []
        },
        {
          "name": "IncluiNovaRedeDeClientes",
          "event": [
            {
              "listen": "test",
              "script": {
                "exec": [
                  "pm.test(\"Successful POST request\", function () {",
                  "    pm.expect(pm.response.code).to.be.oneOf([200,201,202]);",
                  "});",
                  "",
                  "pm.environment.set(\"rede_cliente_id\", postman.getResponseHeader(\"MeusPedidosID\"));",
                  "",
                  ""
                ],
                "type": "text/javascript",
                "packages": {},
                "requests": {}
              }
            }
          ],
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{application-token}}",
                "type": "text"
              },
              {
                "key": "CompanyToken",
                "value": "{{company-token}}",
                "type": "text"
              },
              {
                "key": "ContentType",
                "value": "application/json",
                "type": "text"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n    \"nome\": \"Rede Mercos\",\n    \"excluido\": false\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v1/redes",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v1",
                "redes"
              ]
            }
          },
          "response": []
        },
        {
          "name": "AlteraRedeDeClientes",
          "event": [
            {
              "listen": "test",
              "script": {
                "exec": [
                  "pm.test(\"Successful POST request\", function () {",
                  "    pm.expect(pm.response.code).to.be.oneOf([200,201,202]);",
                  "});"
                ],
                "type": "text/javascript",
                "packages": {},
                "requests": {}
              }
            }
          ],
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{application-token}}",
                "type": "text"
              },
              {
                "key": "CompanyToken",
                "value": "{{company-token}}",
                "type": "text"
              },
              {
                "key": "ContentType",
                "value": "application/json",
                "type": "text"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n     \"nome\": \"Rede Mercos - Alterado\",\n     \"excluido\": true\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v1/redes/{{rede_cliente_id}}",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v1",
                "redes",
                "{{rede_cliente_id}}"
              ]
            }
          },
          "response": []
        }
      ]
    },
    {
      "name": "SegmentoCliente",
      "item": [
        {
          "name": "BuscaTodosSegmentos",
          "event": [
            {
              "listen": "test",
              "script": {
                "exec": [
                  "pm.test(\"Successful POST request\", function () {",
                  "    pm.expect(pm.response.code).to.be.oneOf([200,201,202]);",
                  "});"
                ],
                "type": "text/javascript"
              }
            }
          ],
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{application-token}}",
                "type": "text"
              },
              {
                "key": "CompanyToken",
                "value": "{{company-token}}",
                "type": "text"
              },
              {
                "key": "ContentType",
                "value": "application/json",
                "type": "text"
              }
            ],
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v1/segmentos?alterado_apos={{$timestamp}}",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v1",
                "segmentos"
              ],
              "query": [
                {
                  "key": "alterado_apos",
                  "value": "{{$timestamp}}"
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "BuscaUmSegmento",
          "event": [
            {
              "listen": "test",
              "script": {
                "exec": [
                  "pm.test(\"Successful POST request\", function () {",
                  "    pm.expect(pm.response.code).to.be.oneOf([200,201,202]);",
                  "});"
                ],
                "type": "text/javascript"
              }
            }
          ],
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{application-token}}",
                "type": "text"
              },
              {
                "key": "CompanyToken",
                "value": "{{company-token}}",
                "type": "text"
              },
              {
                "key": "ContentType",
                "value": "application/json",
                "type": "text"
              }
            ],
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v1/segmentos/{{segmento_id}}",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v1",
                "segmentos",
                "{{segmento_id}}"
              ]
            }
          },
          "response": []
        },
        {
          "name": "IncluiNovoSegmento",
          "event": [
            {
              "listen": "test",
              "script": {
                "exec": [
                  "pm.test(\"Successful POST request\", function () {",
                  "    pm.expect(pm.response.code).to.be.oneOf([200,201,202]);",
                  "});",
                  "",
                  "pm.environment.set(\"segmento_id\", postman.getResponseHeader(\"MeusPedidosID\"));",
                  "",
                  ""
                ],
                "type": "text/javascript",
                "packages": {},
                "requests": {}
              }
            }
          ],
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{application-token}}",
                "type": "text"
              },
              {
                "key": "CompanyToken",
                "value": "{{company-token}}",
                "type": "text"
              },
              {
                "key": "ContentType",
                "value": "application/json",
                "type": "text"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n     \"nome\": \"Segmento Mercos\",\n     \"excluido\": false\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v1/segmentos",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v1",
                "segmentos"
              ]
            }
          },
          "response": []
        },
        {
          "name": "AlteraSegmento",
          "event": [
            {
              "listen": "test",
              "script": {
                "exec": [
                  "pm.test(\"Successful POST request\", function () {",
                  "    pm.expect(pm.response.code).to.be.oneOf([200,201,202]);",
                  "});"
                ],
                "type": "text/javascript",
                "packages": {},
                "requests": {}
              }
            }
          ],
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{application-token}}",
                "type": "text"
              },
              {
                "key": "CompanyToken",
                "value": "{{company-token}}",
                "type": "text"
              },
              {
                "key": "ContentType",
                "value": "application/json",
                "type": "text"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n     \"nome\": \"Segmento Mercos - Alterado\",\n     \"excluido\": true\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v1/segmentos/{{segmento_id}}",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v1",
                "segmentos",
                "{{segmento_id}}"
              ]
            }
          },
          "response": []
        }
      ]
    },
    {
      "name": "TagCliente",
      "item": [
        {
          "name": "BuscaTodasTags",
          "event": [
            {
              "listen": "test",
              "script": {
                "exec": [
                  "pm.test(\"Successful POST request\", function () {",
                  "    pm.expect(pm.response.code).to.be.oneOf([200,201,202]);",
                  "});"
                ],
                "type": "text/javascript"
              }
            }
          ],
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{application-token}}",
                "type": "text"
              },
              {
                "key": "CompanyToken",
                "value": "{{company-token}}",
                "type": "text"
              },
              {
                "key": "ContentType",
                "value": "application/json",
                "type": "text"
              }
            ],
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v1/tags_de_clientes?alterado_apos={{$timestamp}}",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v1",
                "tags_de_clientes"
              ],
              "query": [
                {
                  "key": "alterado_apos",
                  "value": "{{$timestamp}}"
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "BuscaUmaTag",
          "event": [
            {
              "listen": "test",
              "script": {
                "exec": [
                  "pm.test(\"Successful POST request\", function () {",
                  "    pm.expect(pm.response.code).to.be.oneOf([200,201,202]);",
                  "});"
                ],
                "type": "text/javascript"
              }
            }
          ],
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{application-token}}",
                "type": "text"
              },
              {
                "key": "CompanyToken",
                "value": "{{company-token}}",
                "type": "text"
              },
              {
                "key": "ContentType",
                "value": "application/json",
                "type": "text"
              }
            ],
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v1/tags_de_clientes/{{tag_id}}",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v1",
                "tags_de_clientes",
                "{{tag_id}}"
              ]
            }
          },
          "response": []
        },
        {
          "name": "IncluiNovaTag",
          "event": [
            {
              "listen": "test",
              "script": {
                "exec": [
                  "pm.test(\"Successful POST request\", function () {",
                  "    pm.expect(pm.response.code).to.be.oneOf([200,201,202]);",
                  "});",
                  "",
                  "pm.environment.set(\"tag_id\", postman.getResponseHeader(\"MeusPedidosID\"));",
                  "",
                  ""
                ],
                "type": "text/javascript",
                "packages": {},
                "requests": {}
              }
            }
          ],
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{application-token}}",
                "type": "text"
              },
              {
                "key": "CompanyToken",
                "value": "{{company-token}}",
                "type": "text"
              },
              {
                "key": "ContentType",
                "value": "application/json",
                "type": "text"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n     \"nome\": \"Tag\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v1/tags_de_clientes",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v1",
                "tags_de_clientes"
              ]
            }
          },
          "response": []
        },
        {
          "name": "AlteraTag",
          "event": [
            {
              "listen": "test",
              "script": {
                "exec": [
                  "pm.test(\"Successful POST request\", function () {",
                  "    pm.expect(pm.response.code).to.be.oneOf([200,201,202]);",
                  "});"
                ],
                "type": "text/javascript",
                "packages": {},
                "requests": {}
              }
            }
          ],
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{application-token}}",
                "type": "text"
              },
              {
                "key": "CompanyToken",
                "value": "{{company-token}}",
                "type": "text"
              },
              {
                "key": "ContentType",
                "value": "application/json",
                "type": "text"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n    \"nome\": \"Tag - Alterada\",\n    \"excluido\": false\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v1/tags_de_clientes/{{tag_id}}",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v1",
                "tags_de_clientes",
                "{{tag_id}}"
              ]
            }
          },
          "response": []
        }
      ]
    },
    {
      "name": "VincularTagCliente",
      "item": [
        {
          "name": "VincularTagCliente",
          "event": [
            {
              "listen": "test",
              "script": {
                "exec": [
                  "pm.test(\"Successful POST request\", function () {",
                  "    pm.expect(pm.response.code).to.be.oneOf([200,201,202]);",
                  "});"
                ],
                "type": "text/javascript"
              }
            }
          ],
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{application-token}}",
                "type": "text"
              },
              {
                "key": "CompanyToken",
                "value": "{{company-token}}",
                "type": "text"
              },
              {
                "key": "ContentType",
                "value": "application/json",
                "type": "text"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n     \"clientes_ids\": [\n          {{cliente_id}}\n     ],\n     \"tags_ids\": [\n          {{tag_id}}\n     ]\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v1/vincular_tags_a_clientes",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v1",
                "vincular_tags_a_clientes"
              ]
            }
          },
          "response": []
        }
      ]
    },
    {
      "name": "CampoCustomCliente",
      "item": [
        {
          "name": "BuscaTodosCamposCustom",
          "event": [
            {
              "listen": "test",
              "script": {
                "exec": [
                  "pm.test(\"Successful POST request\", function () {",
                  "    pm.expect(pm.response.code).to.be.oneOf([200,201,202]);",
                  "});"
                ],
                "type": "text/javascript",
                "packages": {},
                "requests": {}
              }
            }
          ],
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{application-token}}",
                "type": "text"
              },
              {
                "key": "CompanyToken",
                "value": "{{company-token}}",
                "type": "text"
              },
              {
                "key": "ContentType",
                "value": "application/json",
                "type": "text"
              }
            ],
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v1/campos_extras_cliente?alterado_apos={{$timestamp}}",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v1",
                "campos_extras_cliente"
              ],
              "query": [
                {
                  "key": "alterado_apos",
                  "value": "{{$timestamp}}"
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "IncluiNovoCampoCustom",
          "event": [
            {
              "listen": "test",
              "script": {
                "exec": [
                  "pm.test(\"Successful POST request\", function () {",
                  "    pm.expect(pm.response.code).to.be.oneOf([200,201,202]);",
                  "});"
                ],
                "type": "text/javascript",
                "packages": {},
                "requests": {}
              }
            }
          ],
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{application-token}}",
                "type": "text"
              },
              {
                "key": "CompanyToken",
                "value": "{{company-token}}",
                "type": "text"
              },
              {
                "key": "ContentType",
                "value": "application/json",
                "type": "text"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n    \"nome\": \"Data de Nascimento\",\n    \"tipo\": \"1\",\n    \"obrigatorio\": true,\n    \"formato\": \"0\",\n    \"exibir_no_b2b\": true,\n    \"excluido\": false,\n    \"lista_multipla\": false,\n    \"informacoes_adicionais\": \"Campo para data de nascimento\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v1/campos_extras_cliente",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v1",
                "campos_extras_cliente"
              ]
            }
          },
          "response": []
        },
        {
          "name": "AlteraCampoCustom",
          "event": [
            {
              "listen": "test",
              "script": {
                "exec": [
                  "pm.test(\"Successful POST request\", function () {",
                  "    pm.expect(pm.response.code).to.be.oneOf([200,201,202]);",
                  "});"
                ],
                "type": "text/javascript",
                "packages": {},
                "requests": {}
              }
            }
          ],
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{application-token}}",
                "type": "text"
              },
              {
                "key": "CompanyToken",
                "value": "{{company-token}}",
                "type": "text"
              },
              {
                "key": "ContentType",
                "value": "application/json",
                "type": "text"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n    \"nome\": \"Data de Nascimento\",\n    \"tipo\": \"1\",\n    \"obrigatorio\": false,\n    \"formato\": \"0\",\n    \"exibir_no_b2b\": true,\n    \"excluido\": false,\n    \"lista_multipla\": false,\n    \"informacoes_adicionais\": \"Campo para data de nascimento - preenchimento opcional\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v1//campos_extras_cliente/{{id_campo_custom_cliente}}",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v1",
                "",
                "campos_extras_cliente",
                "{{id_campo_custom_cliente}}"
              ]
            }
          },
          "response": []
        }
      ],
      "event": [
        {
          "listen": "prerequest",
          "script": {
            "type": "text/javascript",
            "exec": [
              ""
            ]
          }
        },
        {
          "listen": "test",
          "script": {
            "type": "text/javascript",
            "exec": [
              ""
            ]
          }
        }
      ]
    },
    {
      "name": "Titulo",
      "item": [
        {
          "name": "BuscarTodosTitulos",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{application-token}}",
                "type": "text"
              },
              {
                "key": "CompanyToken",
                "value": "{{company-token}}",
                "type": "text"
              },
              {
                "key": "ContentType",
                "value": "application/json",
                "type": "text"
              }
            ],
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v1/titulos?alterado_apos={{$timestamp}}",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v1",
                "titulos"
              ],
              "query": [
                {
                  "key": "alterado_apos",
                  "value": "{{$timestamp}}"
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "BuscarUmTitulo",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{application-token}}",
                "type": "text"
              },
              {
                "key": "CompanyToken",
                "value": "{{company-token}}",
                "type": "text"
              },
              {
                "key": "ContentType",
                "value": "application/json",
                "type": "text"
              }
            ],
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v1/titulos/{{titulo_id}}",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v1",
                "titulos",
                "{{titulo_id}}"
              ]
            }
          },
          "response": []
        },
        {
          "name": "IncluirNovoTitulo",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{application-token}}",
                "type": "text"
              },
              {
                "key": "CompanyToken",
                "value": "{{company-token}}",
                "type": "text"
              },
              {
                "key": "ContentType",
                "value": "application/json",
                "type": "text"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n     \"cliente_id\": {{cliente_id}},\n     \"pedido_id\": {{pedido_id}},\n     \"numero_documento\": \"001\",\n     \"data_vencimento\": 2027-01-01,\n     \"data_pagamento\": null,\n     \"valor\": 100.00,\n     \"arquivo_pdf\": \"{{randomPDFBase64}}\",\n     \"link_pdf\": \"{{randomStringLinkURLPDF}}\",\n     \"observacao\": \"\",\n     \"excluido\": false\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v1/titulos",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v1",
                "titulos"
              ]
            }
          },
          "response": []
        },
        {
          "name": "AlterarTitulo",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{application-token}}",
                "type": "text"
              },
              {
                "key": "CompanyToken",
                "value": "{{company-token}}",
                "type": "text"
              },
              {
                "key": "ContentType",
                "value": "application/json",
                "type": "text"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n    \"cliente_id\": {{cliente_id}},\n    \"pedido_id\": {{pedido_id}},\n    \"numero_documento\": \"001\",\n    \"data_vencimento\": 2027-01-01,\n    \"data_pagamento\": 2026-12-20,\n    \"valor\": 100.00,\n    \"arquivo_pdf\": \"{{randomPDFBase64}}\",\n    \"link_pdf\": \"{{randomStringLinkURLPDF}}\",\n    \"observacao\": \"\",\n    \"excluido\": false\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v1/titulos/{{titulo_id}}",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v1",
                "titulos",
                "{{titulo_id}}"
              ]
            }
          },
          "response": []
        }
      ]
    },
    {
      "name": "Notas Fiscais",
      "item": [
        {
          "name": "BuscaTodasNotasFiscais",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{application-token}}",
                "type": "text"
              },
              {
                "key": "CompanyToken",
                "value": "{{company-token}}",
                "type": "text"
              },
              {
                "key": "ContentType",
                "value": "application/json",
                "type": "text"
              }
            ],
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v2/nota_fiscal?alterado_apos={{$timestamp}}",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v2",
                "nota_fiscal"
              ],
              "query": [
                {
                  "key": "alterado_apos",
                  "value": "{{$timestamp}}"
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "BuscaUmaNotaFiscal",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{application-token}}",
                "type": "text"
              },
              {
                "key": "CompanyToken",
                "value": "{{company-token}}",
                "type": "text"
              },
              {
                "key": "ContentType",
                "value": "application/json",
                "type": "text"
              }
            ],
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v2/nota_fiscal/{{nota_fiscal_id}}",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v2",
                "nota_fiscal",
                "{{nota_fiscal_id}}"
              ]
            }
          },
          "response": []
        },
        {
          "name": "IncluiNovaNotaFiscal",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{application-token}}",
                "type": "text"
              },
              {
                "key": "CompanyToken",
                "value": "{{company-token}}",
                "type": "text"
              },
              {
                "key": "ContentType",
                "value": "application/json",
                "type": "text"
              }
            ],
            "body": {
              "mode": "formdata",
              "formdata": [
                {
                  "key": "arquivo_pdf",
                  "type": "file",
                  "uuid": "62e6ce5e-9a0c-4ed8-99f1-d542e8a1c27a",
                  "value": null
                },
                {
                  "key": "arquivo_xml",
                  "type": "file",
                  "uuid": "e2a5e776-a592-43ca-b749-d2792bfcf213",
                  "value": null
                },
                {
                  "key": "nota_fiscal",
                  "value": "{\n\t\"numero\":\"987654321\",\n\t\"serie\":\"001\",\n\t\"chave_acesso\":\"22222111111111111111111111111111111111111111\",\n\t\"valor\":201.02,\n\t\"data_emissao\":\"2025-10-10\",\n\t\"cliente_id\":7336216,\n\t\"excluido\": false,\n\t\"link_pdf\":{{string_link_pdf}},\n\t\"link_xml\": {{string_link_xml}}\n}",
                  "type": "text",
                  "uuid": "4818a65d-c7ad-46b0-aae5-e55f598d48dd"
                }
              ]
            },
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v2/nota_fiscal",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v2",
                "nota_fiscal"
              ]
            }
          },
          "response": []
        },
        {
          "name": "AlterarNotaFiscal",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{application-token}}",
                "type": "text"
              },
              {
                "key": "CompanyToken",
                "value": "{{company-token}}",
                "type": "text"
              },
              {
                "key": "ContentType",
                "value": "application/json",
                "type": "text"
              }
            ],
            "body": {
              "mode": "formdata",
              "formdata": [
                {
                  "key": "nota_fiscal",
                  "value": "{\n\t\"numero\":\"987654321\",\n\t\"serie\":\"001\",\n\t\"chave_acesso\":\"22222111111111111111111111111111111111111111\",\n\t\"valor\":201.02,\n\t\"data_emissao\":\"2025-10-10\",\n\t\"cliente_id\":7336216,\n\t\"excluido\": false,\n\t\"link_pdf\":{{string_link_pdf}},\n\t\"link_xml\": {{string_link_xml}}\n}",
                  "type": "text",
                  "uuid": "ad081120-fb95-4ade-9321-cbb3697e9cd8"
                }
              ]
            },
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v2/nota_fiscal/{{nota_fiscal_id}}",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v2",
                "nota_fiscal",
                "{{nota_fiscal_id}}"
              ]
            }
          },
          "response": []
        }
      ]
    },
    {
      "name": "Pedido",
      "item": [
        {
          "name": "BuscaTodosPedidos",
          "event": [
            {
              "listen": "test",
              "script": {
                "exec": [
                  "pm.test(\"Successful POST request\", function () {",
                  "    pm.expect(pm.response.code).to.be.oneOf([200,201,202]);",
                  "});"
                ],
                "type": "text/javascript"
              }
            }
          ],
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{application-token}}",
                "type": "text"
              },
              {
                "key": "CompanyToken",
                "value": "{{company-token}}",
                "type": "text"
              },
              {
                "key": "ContentType",
                "value": "application/json",
                "type": "text"
              }
            ],
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v2/pedidos?alterado_apos={{$timestamp}}&status={{$randomInt}}&status_custom={{$randomInt}}&status_faturamento={{$randomInt}}",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v2",
                "pedidos"
              ],
              "query": [
                {
                  "key": "alterado_apos",
                  "value": "{{$timestamp}}"
                },
                {
                  "key": "status",
                  "value": "{{$randomInt}}",
                  "description": "0 - cancelado | 1 - orçamento | 2 - concluído"
                },
                {
                  "key": "status_custom",
                  "value": "{{$randomInt}}",
                  "description": "ID status custom"
                },
                {
                  "key": "status_faturamento",
                  "value": "{{$randomInt}}",
                  "description": "0 - não faturado | 1 - parcialmente faturado | 2 - faturado"
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "BuscaUmPedido",
          "event": [
            {
              "listen": "test",
              "script": {
                "exec": [
                  "pm.test(\"Successful POST request\", function () {",
                  "    pm.expect(pm.response.code).to.be.oneOf([200,201,202]);",
                  "});"
                ],
                "type": "text/javascript"
              }
            }
          ],
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{application-token}}",
                "type": "text"
              },
              {
                "key": "CompanyToken",
                "value": "{{company-token}}",
                "type": "text"
              },
              {
                "key": "ContentType",
                "value": "application/json",
                "type": "text"
              }
            ],
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v2/pedidos/{{pedido_id}}",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v2",
                "pedidos",
                "{{pedido_id}}"
              ]
            }
          },
          "response": []
        },
        {
          "name": "IncluiNovoPedido",
          "event": [
            {
              "listen": "test",
              "script": {
                "exec": [
                  "pm.test(\"Successful POST request\", function () {",
                  "    pm.expect(pm.response.code).to.be.oneOf([200,201,202]);",
                  "});",
                  "pm.environment.set(\"pedido_id\", postman.getResponseHeader(\"MeusPedidosID\"));"
                ],
                "type": "text/javascript",
                "packages": {},
                "requests": {}
              }
            }
          ],
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{application-token}}",
                "type": "text"
              },
              {
                "key": "CompanyToken",
                "value": "{{company-token}}",
                "type": "text"
              },
              {
                "key": "ContentType",
                "value": "application/json",
                "type": "text"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n    \"cliente_id\": 123,\n    \"tipo_pedido_id\": null,\n    \"criador_id\": 1234,\n    \"rastreamento\": \"\",\n    \"valor_frete\": null,\n    \"condicao_pagamento_id\": 12345,\n    \"forma_pagamento_id\": 123456,\n    \"data_emissao\": \"2026-06-09\",\n    \"observacoes\": \"\",\n    \"extras\": [],\n    \"representada_id\": 12,\n    \"data_criacao\": \"2026-06-09 12:26:21\",\n    \"itens\": [\n        {\n            \"produto_id\": 1234567,\n            \"quantidade\": 1.0,\n            \"preco_tabela\": 150.0,\n            \"ipi\": 0.0,\n            \"tipo_ipi\": \"P\",\n            \"st\": 0.0,\n            \"excluido\": false,\n            \"descontos_do_vendedor\": [\n                5.0\n            ],\n            \"descontos_de_promocoes\": [],\n            \"descontos_de_politicas\": [],\n            \"observacoes\": \"\"\n        }\n    ]\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v2/pedidos/",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v2",
                "pedidos",
                ""
              ]
            }
          },
          "response": []
        },
        {
          "name": "IncluiNovoPedidoComProdutoGrade",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{application-token}}",
                "type": "text"
              },
              {
                "key": "CompanyToken",
                "value": "{{company-token}}",
                "type": "text"
              },
              {
                "key": "ContentType",
                "value": "application/json",
                "type": "text"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n    \"cliente_id\": 123,\n    \"tipo_pedido_id\": null,\n    \"criador_id\": 1234,\n    \"rastreamento\": \"\",\n    \"valor_frete\": null,\n    \"condicao_pagamento\": \"Boleto 30.60.90\",\n    \"forma_pagamento_id\": 12345,\n    \"data_emissao\": \"2026-06-09\",\n    \"observacoes\": \"\",\n    \"extras\": [],\n    \"data_criacao\": \"2026-06-09 12:37:42\",\n    \"itens\": [\n        {\n            \"produto_id\": 1234561,\n            \"quantidade\": 1.0,\n            \"preco_tabela\": 100.0,\n            \"ipi\": 0.0,\n            \"tipo_ipi\": \"P\",\n            \"st\": 0.0,\n            \"excluido\": false,\n            \"descontos_do_vendedor\": [],\n            \"descontos_de_promocoes\": [],\n            \"descontos_de_politicas\": [],\n            \"observacoes\": \"\",\n            \"grupo_grades\": \"7fe3b5bd-85c2-4856-b9dd-667d40cb03f6\"\n        },\n        {\n            \"produto_id\": 1234562,\n            \"quantidade\": 1.0,\n            \"preco_tabela\": 100.0,\n            \"ipi\": 0.0,\n            \"tipo_ipi\": \"P\",\n            \"st\": 0.0,\n            \"excluido\": false,\n            \"descontos_do_vendedor\": [],\n            \"descontos_de_promocoes\": [],\n            \"descontos_de_politicas\": [],\n            \"observacoes\": \"\",\n            \"grupo_grades\": \"7fe3b5bd-85c2-4856-b9dd-667d40cb03f6\"\n        },\n        {\n            \"produto_id\": 1234563,\n            \"quantidade\": 1.0,\n            \"preco_tabela\": 100.0,\n            \"ipi\": 0.0,\n            \"tipo_ipi\": \"P\",\n            \"st\": 0.0,\n            \"excluido\": false,\n            \"descontos_do_vendedor\": [],\n            \"descontos_de_promocoes\": [],\n            \"descontos_de_politicas\": [],\n            \"observacoes\": \"\",\n            \"grupo_grades\": \"7fe3b5bd-85c2-4856-b9dd-667d40cb03f6\"\n        },\n        {\n            \"produto_id\": 1234564,\n            \"quantidade\": 1.0,\n            \"preco_tabela\": 100.0,\n            \"ipi\": 0.0,\n            \"tipo_ipi\": \"P\",\n            \"st\": 0.0,\n            \"excluido\": false,\n            \"descontos_do_vendedor\": [],\n            \"descontos_de_promocoes\": [],\n            \"descontos_de_politicas\": [],\n            \"observacoes\": \"\",\n            \"grupo_grades\": \"7fe3b5bd-85c2-4856-b9dd-667d40cb03f6\"\n        }\n    ]\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v2/pedidos/",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v2",
                "pedidos",
                ""
              ]
            }
          },
          "response": []
        },
        {
          "name": "AlteraPedido",
          "event": [
            {
              "listen": "test",
              "script": {
                "exec": [
                  "pm.test(\"Successful POST request\", function () {",
                  "    pm.expect(pm.response.code).to.be.oneOf([200,201,202]);",
                  "});"
                ],
                "type": "text/javascript",
                "packages": {},
                "requests": {}
              }
            }
          ],
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "application_token_123",
                "type": "text"
              },
              {
                "key": "CompanyToken",
                "value": "company_token_123",
                "type": "text"
              },
              {
                "key": "Content-Type",
                "value": "application/json",
                "type": "text"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n    \"cliente_id\": 123,\n    \"tipo_pedido_id\": null,\n    \"criador_id\": 61534,\n    \"rastreamento\": \"\",\n    \"valor_frete\": null,\n    \"condicao_pagamento_id\": 247522,\n    \"forma_pagamento_id\": 85479,\n    \"data_emissao\": \"2026-06-09\",\n    \"observacoes\": \"Pedido Atualizado\",\n    \"extras\": [],\n    \"data_criacao\": \"2026-06-09 12:26:21\",\n    \"itens\": [\n        {\n            \"id\": 15426182,\n            \"produto_id\": 1234567,\n            \"quantidade\": 10.0,\n            \"preco_tabela\": 150.0,\n            \"ipi\": 0.0,\n            \"tipo_ipi\": \"P\",\n            \"st\": 0.0,\n            \"excluido\": false,\n            \"descontos_do_vendedor\": [\n                5.0\n            ],\n            \"descontos_de_promocoes\": [],\n            \"descontos_de_politicas\": [],\n            \"observacoes\": \"\"\n        }\n    ]\n}"
            },
            "url": {
              "raw": "https://sandbox.mercos.com/api/v2/pedidos/{{pedido_id}}",
              "protocol": "https",
              "host": [
                "sandbox",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v2",
                "pedidos",
                "{{pedido_id}}"
              ]
            }
          },
          "response": []
        },
        {
          "name": "AlteraPedidoComProdutoGrade",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{application-token}}",
                "type": "text"
              },
              {
                "key": "CompanyToken",
                "value": "{{company-token}}",
                "type": "text"
              },
              {
                "key": "ContentType",
                "value": "application/json",
                "type": "text"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n    \"cliente_id\": 123,\n    \"tipo_pedido_id\": null,\n    \"criador_id\": 1234,\n    \"rastreamento\": \"\",\n    \"valor_frete\": null,\n    \"condicao_pagamento\": \"Boleto 30.60.90\",\n    \"forma_pagamento_id\": 12345,\n    \"data_emissao\": \"2026-06-09\",\n    \"observacoes\": \"Pedido Atualizado\",\n    \"extras\": [],\n    \"data_criacao\": \"2026-06-09 12:37:42\",\n    \"itens\": [\n        {\n            \"id\": 15426206,\n            \"produto_id\": 1234561,\n            \"quantidade\": 1.0,\n            \"preco_tabela\": 150.0,\n            \"ipi\": 0.0,\n            \"tipo_ipi\": \"P\",\n            \"st\": 0.0,\n            \"excluido\": false,\n            \"descontos_do_vendedor\": [],\n            \"descontos_de_promocoes\": [],\n            \"descontos_de_politicas\": [],\n            \"observacoes\": \"\",\n            \"grupo_grades\": \"7fe3b5bd-85c2-4856-b9dd-667d40cb03f6\"\n        },\n        {\n            \"id\": 15426207,\n            \"produto_id\": 1234562,\n            \"quantidade\": 1.0,\n            \"preco_tabela\": 150.0,\n            \"ipi\": 0.0,\n            \"tipo_ipi\": \"P\",\n            \"st\": 0.0,\n            \"excluido\": false,\n            \"descontos_do_vendedor\": [],\n            \"descontos_de_promocoes\": [],\n            \"descontos_de_politicas\": [],\n            \"observacoes\": \"\",\n            \"grupo_grades\": \"7fe3b5bd-85c2-4856-b9dd-667d40cb03f6\"\n        },\n        {\n            \"id\": 15426208,\n            \"produto_id\": 1234563,\n            \"quantidade\": 1.0,\n            \"preco_tabela\": 150.0,\n            \"ipi\": 0.0,\n            \"tipo_ipi\": \"P\",\n            \"st\": 0.0,\n            \"excluido\": false,\n            \"descontos_do_vendedor\": [],\n            \"descontos_de_promocoes\": [],\n            \"descontos_de_politicas\": [],\n            \"observacoes\": \"\",\n            \"grupo_grades\": \"7fe3b5bd-85c2-4856-b9dd-667d40cb03f6\"\n        },\n        {\n            \"id\": 15426209,\n            \"produto_id\": 1234564,\n            \"quantidade\": 1.0,\n            \"preco_tabela\": 150.0,\n            \"ipi\": 0.0,\n            \"tipo_ipi\": \"P\",\n            \"st\": 0.0,\n            \"excluido\": false,\n            \"descontos_do_vendedor\": [],\n            \"descontos_de_promocoes\": [],\n            \"descontos_de_politicas\": [],\n            \"observacoes\": \"\",\n            \"grupo_grades\": \"7fe3b5bd-85c2-4856-b9dd-667d40cb03f6\"\n        }\n    ]\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v2/pedidos/{{pedido_id}}",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v2",
                "pedidos",
                "{{pedido_id}}"
              ]
            }
          },
          "response": []
        }
      ],
      "event": [
        {
          "listen": "prerequest",
          "script": {
            "type": "text/javascript",
            "exec": [
              ""
            ]
          }
        },
        {
          "listen": "test",
          "script": {
            "type": "text/javascript",
            "exec": [
              ""
            ]
          }
        }
      ]
    },
    {
      "name": "TipoPedido",
      "item": [
        {
          "name": "BuscaTodosTiposPedido",
          "event": [
            {
              "listen": "test",
              "script": {
                "exec": [
                  "pm.test(\"Successful POST request\", function () {",
                  "    pm.expect(pm.response.code).to.be.oneOf([200,201,202]);",
                  "});"
                ],
                "type": "text/javascript"
              }
            }
          ],
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{application-token}}",
                "type": "text"
              },
              {
                "key": "CompanyToken",
                "value": "{{company-token}}",
                "type": "text"
              },
              {
                "key": "ContentType",
                "value": "application/json",
                "type": "text"
              }
            ],
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v1/pedidos/tipo?alterado_apos={{$timestamp}}",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v1",
                "pedidos",
                "tipo"
              ],
              "query": [
                {
                  "key": "alterado_apos",
                  "value": "{{$timestamp}}"
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "BuscaUmTipoPedido",
          "event": [
            {
              "listen": "test",
              "script": {
                "exec": [
                  "pm.test(\"Successful POST request\", function () {",
                  "    pm.expect(pm.response.code).to.be.oneOf([200,201,202]);",
                  "});"
                ],
                "type": "text/javascript"
              }
            }
          ],
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{application-token}}",
                "type": "text"
              },
              {
                "key": "CompanyToken",
                "value": "{{company-token}}",
                "type": "text"
              },
              {
                "key": "ContentType",
                "value": "application/json",
                "type": "text"
              }
            ],
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v1/pedidos/tipo/{{tipo_pedido_id}}",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v1",
                "pedidos",
                "tipo",
                "{{tipo_pedido_id}}"
              ]
            }
          },
          "response": []
        },
        {
          "name": "IncluiNovoTipoPedido",
          "event": [
            {
              "listen": "test",
              "script": {
                "exec": [
                  "pm.test(\"Successful POST request\", function () {",
                  "    pm.expect(pm.response.code).to.be.oneOf([200,201,202]);",
                  "});",
                  "",
                  "pm.environment.set(\"tipo_pedido_id\", postman.getResponseHeader(\"MeusPedidosID\"));",
                  "",
                  ""
                ],
                "type": "text/javascript",
                "packages": {},
                "requests": {}
              }
            }
          ],
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{application-token}}",
                "type": "text"
              },
              {
                "key": "CompanyToken",
                "value": "{{company-token}}",
                "type": "text"
              },
              {
                "key": "ContentType",
                "value": "application/json",
                "type": "text"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n    \"nome\": \"Pedido Bonificado\",\n    \"excluido\": false\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v1/pedidos/tipo",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v1",
                "pedidos",
                "tipo"
              ]
            }
          },
          "response": []
        },
        {
          "name": "AlteraTipoPedido",
          "event": [
            {
              "listen": "test",
              "script": {
                "exec": [
                  "pm.test(\"Successful POST request\", function () {",
                  "    pm.expect(pm.response.code).to.be.oneOf([200,201,202]);",
                  "});"
                ],
                "type": "text/javascript",
                "packages": {},
                "requests": {}
              }
            }
          ],
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{application-token}}",
                "type": "text"
              },
              {
                "key": "CompanyToken",
                "value": "{{company-token}}",
                "type": "text"
              },
              {
                "key": "ContentType",
                "value": "application/json",
                "type": "text"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n    \"nome\": \"Pedido Bonificado - Alterado\",\n    \"excluido\": true\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v1/pedidos/tipo/{{tipo_pedido_id}}",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v1",
                "pedidos",
                "tipo",
                "{{tipo_pedido_id}}"
              ]
            }
          },
          "response": []
        }
      ],
      "event": [
        {
          "listen": "prerequest",
          "script": {
            "type": "text/javascript",
            "exec": [
              ""
            ]
          }
        },
        {
          "listen": "test",
          "script": {
            "type": "text/javascript",
            "exec": [
              ""
            ]
          }
        }
      ]
    },
    {
      "name": "CampoCustom",
      "item": [
        {
          "name": "BuscaTodosCamposCustom",
          "event": [
            {
              "listen": "test",
              "script": {
                "exec": [
                  "pm.test(\"Successful POST request\", function () {",
                  "    pm.expect(pm.response.code).to.be.oneOf([200,201,202]);",
                  "});"
                ],
                "type": "text/javascript"
              }
            }
          ],
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{application-token}}",
                "type": "text"
              },
              {
                "key": "CompanyToken",
                "value": "{{company-token}}",
                "type": "text"
              },
              {
                "key": "ContentType",
                "value": "application/json",
                "type": "text"
              }
            ],
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v1/campos_extras?alterado_apos={{$timestamp}}",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v1",
                "campos_extras"
              ],
              "query": [
                {
                  "key": "alterado_apos",
                  "value": "{{$timestamp}}"
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "BuscaUmCampoCustom",
          "event": [
            {
              "listen": "test",
              "script": {
                "exec": [
                  "pm.test(\"Successful POST request\", function () {",
                  "    pm.expect(pm.response.code).to.be.oneOf([200,201,202]);",
                  "});"
                ],
                "type": "text/javascript"
              }
            }
          ],
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{application-token}}",
                "type": "text"
              },
              {
                "key": "CompanyToken",
                "value": "{{company-token}}",
                "type": "text"
              },
              {
                "key": "ContentType",
                "value": "application/json",
                "type": "text"
              }
            ],
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v1/campos_extras/{{campo_custom_id}}",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v1",
                "campos_extras",
                "{{campo_custom_id}}"
              ]
            }
          },
          "response": []
        },
        {
          "name": "IncluiNovoCampoCustom",
          "event": [
            {
              "listen": "test",
              "script": {
                "exec": [
                  "pm.test(\"Successful POST request\", function () {",
                  "    pm.expect(pm.response.code).to.be.oneOf([200,201,202]);",
                  "});"
                ],
                "type": "text/javascript",
                "packages": {},
                "requests": {}
              }
            }
          ],
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{application-token}}",
                "type": "text"
              },
              {
                "key": "CompanyToken",
                "value": "{{company-token}}",
                "type": "text"
              },
              {
                "key": "ContentType",
                "value": "application/json",
                "type": "text"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n     \"nome\": \"Campo Texto\",\n     \"tipo\": \"0\",\n     \"obrigatorio\": false,\n     \"excluido\": false\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v1/campos_extras",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v1",
                "campos_extras"
              ]
            }
          },
          "response": []
        },
        {
          "name": "IncluirNovoCampoCustomTipoLista",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{application-token}}",
                "type": "text"
              },
              {
                "key": "CompanyToken",
                "value": "{{company-token}}",
                "type": "text"
              },
              {
                "key": "ContentType",
                "value": "application/json",
                "type": "text"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n     /* tipo 4 refere-se a lista */\n     \"tipo\": \"4\",\n     \"nome\": \"Tipo de Frete\",\n     \"obrigatorio\": true,\n    \"lista_multipla\": true,\n    \"itens\": [\n          {\n               \"valor\": \"CIF\",\n               \"selecionado\": false,\n               \"ordem\": 1\n          },\n          {\n               \"valor\": \"FOB\",\n               \"selecionado\": true,\n               \"ordem\": 2\n          }\n     ]\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v1/campos_extras/{{campo_custom_id}}",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v1",
                "campos_extras",
                "{{campo_custom_id}}"
              ]
            }
          },
          "response": []
        },
        {
          "name": "AlteraCampoCustom",
          "event": [
            {
              "listen": "test",
              "script": {
                "exec": [
                  "pm.test(\"Successful POST request\", function () {",
                  "    pm.expect(pm.response.code).to.be.oneOf([200,201,202]);",
                  "});"
                ],
                "type": "text/javascript",
                "packages": {},
                "requests": {}
              }
            }
          ],
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{application-token}}",
                "type": "text"
              },
              {
                "key": "CompanyToken",
                "value": "{{company-token}}",
                "type": "text"
              },
              {
                "key": "ContentType",
                "value": "application/json",
                "type": "text"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n     \"nome\": \"Campo Texto - Alterado\",\n     \"tipo\": \"0\",\n     \"obrigatorio\": true,\n     \"excluido\": false\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v1/campos_extras/{{campo_custom_id}}",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v1",
                "campos_extras",
                "{{campo_custom_id}}"
              ]
            }
          },
          "response": []
        }
      ],
      "event": [
        {
          "listen": "prerequest",
          "script": {
            "type": "text/javascript",
            "exec": [
              ""
            ]
          }
        },
        {
          "listen": "test",
          "script": {
            "type": "text/javascript",
            "exec": [
              ""
            ]
          }
        }
      ]
    },
    {
      "name": "PedidoStatusCustom",
      "item": [
        {
          "name": "BuscaTodosStatus",
          "event": [
            {
              "listen": "test",
              "script": {
                "exec": [
                  "pm.test(\"Successful POST request\", function () {",
                  "    pm.expect(pm.response.code).to.be.oneOf([200,201,202]);",
                  "});"
                ],
                "type": "text/javascript"
              }
            }
          ],
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{application-token}}",
                "type": "text"
              },
              {
                "key": "CompanyToken",
                "value": "{{company-token}}",
                "type": "text"
              },
              {
                "key": "ContentType",
                "value": "application/json",
                "type": "text"
              }
            ],
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v1/pedidos/status?alterado_apos={{$timestamp}}",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v1",
                "pedidos",
                "status"
              ],
              "query": [
                {
                  "key": "alterado_apos",
                  "value": "{{$timestamp}}"
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "BuscaUmStatus",
          "event": [
            {
              "listen": "test",
              "script": {
                "exec": [
                  "pm.test(\"Successful POST request\", function () {",
                  "    pm.expect(pm.response.code).to.be.oneOf([200,201,202]);",
                  "});"
                ],
                "type": "text/javascript"
              }
            }
          ],
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{application-token}}",
                "type": "text"
              },
              {
                "key": "CompanyToken",
                "value": "{{company-token}}",
                "type": "text"
              },
              {
                "key": "ContentType",
                "value": "application/json",
                "type": "text"
              }
            ],
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v1/pedidos/status/{{status_id}}",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v1",
                "pedidos",
                "status",
                "{{status_id}}"
              ]
            }
          },
          "response": []
        },
        {
          "name": "IncluiNovoStatus",
          "event": [
            {
              "listen": "test",
              "script": {
                "exec": [
                  "pm.test(\"Successful POST request\", function () {",
                  "    pm.expect(pm.response.code).to.be.oneOf([200,201,202]);",
                  "});",
                  "",
                  "pm.environment.set(\"status_id\", postman.getResponseHeader(\"MeusPedidosID\"));",
                  "",
                  ""
                ],
                "type": "text/javascript",
                "packages": {},
                "requests": {}
              }
            }
          ],
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{application-token}}",
                "type": "text"
              },
              {
                "key": "CompanyToken",
                "value": "{{company-token}}",
                "type": "text"
              },
              {
                "key": "ContentType",
                "value": "application/json",
                "type": "text"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n    \"nome\": \"Em separação\",\n    \"excluido\": false\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v1/pedidos/status",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v1",
                "pedidos",
                "status"
              ]
            }
          },
          "response": []
        },
        {
          "name": "AlteraStatus",
          "event": [
            {
              "listen": "test",
              "script": {
                "exec": [
                  "pm.test(\"Successful POST request\", function () {",
                  "    pm.expect(pm.response.code).to.be.oneOf([200,201,202]);",
                  "});"
                ],
                "type": "text/javascript",
                "packages": {},
                "requests": {}
              }
            }
          ],
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{application-token}}",
                "type": "text"
              },
              {
                "key": "CompanyToken",
                "value": "{{company-token}}",
                "type": "text"
              },
              {
                "key": "ContentType",
                "value": "application/json",
                "type": "text"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n    \"nome\": \"Em separação - Alterado\",\n    \"excluido\": true\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v1/pedidos/status/{{status_id}}",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v1",
                "pedidos",
                "status",
                "{{status_id}}"
              ]
            }
          },
          "response": []
        },
        {
          "name": "AlterarStatusPedido",
          "event": [
            {
              "listen": "test",
              "script": {
                "exec": [
                  "pm.test(\"Successful POST request\", function () {",
                  "    pm.expect(pm.response.code).to.be.oneOf([200,201,202]);",
                  "});",
                  "",
                  "pm.environment.set(\"status_id\", postman.getResponseHeader(\"MeusPedidosID\"));",
                  "",
                  ""
                ],
                "type": "text/javascript",
                "packages": {},
                "requests": {}
              }
            }
          ],
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{application-token}}",
                "type": "text"
              },
              {
                "key": "CompanyToken",
                "value": "{{company-token}}",
                "type": "text"
              },
              {
                "key": "ContentType",
                "value": "application/json",
                "type": "text"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n    \"status_id\": 123,\n    \"anotacao\": \"Campo para especificações do status vinculado ao pedido.\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v1/pedidos/{{pedido_id}}/status",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v1",
                "pedidos",
                "{{pedido_id}}",
                "status"
              ]
            }
          },
          "response": []
        },
        {
          "name": "BuscaHistoricoStatusPedido",
          "event": [
            {
              "listen": "test",
              "script": {
                "exec": [
                  "pm.test(\"Successful POST request\", function () {",
                  "    pm.expect(pm.response.code).to.be.oneOf([200,201,202]);",
                  "});"
                ],
                "type": "text/javascript",
                "packages": {},
                "requests": {}
              }
            }
          ],
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{application-token}}",
                "type": "text"
              },
              {
                "key": "CompanyToken",
                "value": "{{company-token}}",
                "type": "text"
              },
              {
                "key": "ContentType",
                "value": "application/json",
                "type": "text"
              }
            ],
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v1/pedidos/{{pedido_id}}/status",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v1",
                "pedidos",
                "{{pedido_id}}",
                "status"
              ]
            }
          },
          "response": []
        }
      ],
      "event": [
        {
          "listen": "prerequest",
          "script": {
            "type": "text/javascript",
            "exec": [
              ""
            ]
          }
        },
        {
          "listen": "test",
          "script": {
            "type": "text/javascript",
            "exec": [
              ""
            ]
          }
        }
      ]
    },
    {
      "name": "CancelamentoPedido",
      "item": [
        {
          "name": "CancelarPedido",
          "event": [
            {
              "listen": "test",
              "script": {
                "exec": [
                  "pm.test(\"Successful POST request\", function () {",
                  "    pm.expect(pm.response.code).to.be.oneOf([200,201,202]);",
                  "});"
                ],
                "type": "text/javascript"
              }
            }
          ],
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{application-token}}",
                "type": "text"
              },
              {
                "key": "CompanyToken",
                "value": "{{company-token}}",
                "type": "text"
              },
              {
                "key": "ContentType",
                "value": "application/json",
                "type": "text"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": ""
            },
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v1/pedidos/cancelar/{{pedido_id}}",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v1",
                "pedidos",
                "cancelar",
                "{{pedido_id}}"
              ]
            }
          },
          "response": []
        }
      ]
    },
    {
      "name": "FaturarPedido",
      "item": [
        {
          "name": "FaturarPedido",
          "event": [
            {
              "listen": "test",
              "script": {
                "exec": [
                  "pm.test(\"Successful POST request\", function () {",
                  "    pm.expect(pm.response.code).to.be.oneOf([200,201,202]);",
                  "});",
                  "",
                  "pm.environment.set(\"faturamento_id\", postman.getResponseHeader(\"MeusPedidosID\"));",
                  "",
                  ""
                ],
                "type": "text/javascript",
                "packages": {},
                "requests": {}
              }
            }
          ],
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{application-token}}",
                "type": "text"
              },
              {
                "key": "CompanyToken",
                "value": "{{company-token}}",
                "type": "text"
              },
              {
                "key": "ContentType",
                "value": "application/json",
                "type": "text"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n    \"pedido_id\": {{pedido_id}},\n    \"valor_faturado\": 100,\n    \"data_faturamento\": \"2026-07-01\",\n    \"numero_nf\": \"00001\",\n    \"informacoes_adicionais\": \"Pedido faturamento parcialmente\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v1/faturamento",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v1",
                "faturamento"
              ]
            }
          },
          "response": []
        },
        {
          "name": "AlteraFaturamentoPedido",
          "event": [
            {
              "listen": "test",
              "script": {
                "exec": [
                  "pm.test(\"Successful POST request\", function () {",
                  "    pm.expect(pm.response.code).to.be.oneOf([200,201,202]);",
                  "});"
                ],
                "type": "text/javascript",
                "packages": {},
                "requests": {}
              }
            }
          ],
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{application-token}}",
                "type": "text"
              },
              {
                "key": "CompanyToken",
                "value": "{{company-token}}",
                "type": "text"
              },
              {
                "key": "ContentType",
                "value": "application/json",
                "type": "text"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n    \"pedido_id\": {{pedido_id}},\n    \"valor_faturado\": 200,\n    \"data_faturamento\": \"2026-07-01\",\n    \"numero_nf\": \"00001\",\n    \"informacoes_adicionais\": \"Pedido faturamento totalmente\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v1/faturamento/{{faturamento_id}}",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v1",
                "faturamento",
                "{{faturamento_id}}"
              ]
            }
          },
          "response": []
        }
      ]
    },
    {
      "name": "FormaPagamento",
      "item": [
        {
          "name": "BuscaTodasFormasPagamento",
          "event": [
            {
              "listen": "test",
              "script": {
                "exec": [
                  "pm.test(\"Successful POST request\", function () {",
                  "    pm.expect(pm.response.code).to.be.oneOf([200,201,202]);",
                  "});"
                ],
                "type": "text/javascript"
              }
            }
          ],
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{application-token}}",
                "type": "text"
              },
              {
                "key": "CompanyToken",
                "value": "{{company-token}}",
                "type": "text"
              },
              {
                "key": "ContentType",
                "value": "application/json",
                "type": "text"
              }
            ],
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v1/formas_pagamento?alterado_apos={{$timestamp}}",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v1",
                "formas_pagamento"
              ],
              "query": [
                {
                  "key": "alterado_apos",
                  "value": "{{$timestamp}}"
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "BuscaUmaFormaPagamento",
          "event": [
            {
              "listen": "test",
              "script": {
                "exec": [
                  "pm.test(\"Successful POST request\", function () {",
                  "    pm.expect(pm.response.code).to.be.oneOf([200,201,202]);",
                  "});"
                ],
                "type": "text/javascript"
              }
            }
          ],
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{application-token}}",
                "type": "text"
              },
              {
                "key": "CompanyToken",
                "value": "{{company-token}}",
                "type": "text"
              },
              {
                "key": "ContentType",
                "value": "application/json",
                "type": "text"
              }
            ],
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v1/formas_pagamento/{{forma_pagamento_id}}",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v1",
                "formas_pagamento",
                "{{forma_pagamento_id}}"
              ]
            }
          },
          "response": []
        },
        {
          "name": "IncluiNovaFormaPagamento",
          "event": [
            {
              "listen": "test",
              "script": {
                "exec": [
                  "pm.test(\"Successful POST request\", function () {",
                  "    pm.expect(pm.response.code).to.be.oneOf([200,201,202]);",
                  "});",
                  "",
                  "pm.environment.set(\"forma_pagamento_id\", postman.getResponseHeader(\"MeusPedidosID\"));",
                  "",
                  ""
                ],
                "type": "text/javascript",
                "packages": {},
                "requests": {}
              }
            }
          ],
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{application-token}}",
                "type": "text"
              },
              {
                "key": "CompanyToken",
                "value": "{{company-token}}",
                "type": "text"
              },
              {
                "key": "ContentType",
                "value": "application/json",
                "type": "text"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n    \"nome\": \"Boleto\",\n    \"excluido\": false\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v1/formas_pagamento",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v1",
                "formas_pagamento"
              ]
            }
          },
          "response": []
        },
        {
          "name": "AlteraFormaPagamento",
          "event": [
            {
              "listen": "test",
              "script": {
                "exec": [
                  "pm.test(\"Successful POST request\", function () {",
                  "    pm.expect(pm.response.code).to.be.oneOf([200,201,202]);",
                  "});"
                ],
                "type": "text/javascript",
                "packages": {},
                "requests": {}
              }
            }
          ],
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{application-token}}",
                "type": "text"
              },
              {
                "key": "CompanyToken",
                "value": "{{company-token}}",
                "type": "text"
              },
              {
                "key": "ContentType",
                "value": "application/json",
                "type": "text"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n    \"nome\": \"Boleto - Alterado\",\n    \"excluido\": true\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v1/formas_pagamento/{{forma_pagamento_id}}",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v1",
                "formas_pagamento",
                "{{forma_pagamento_id}}"
              ]
            }
          },
          "response": []
        }
      ],
      "event": [
        {
          "listen": "prerequest",
          "script": {
            "type": "text/javascript",
            "exec": [
              ""
            ]
          }
        },
        {
          "listen": "test",
          "script": {
            "type": "text/javascript",
            "exec": [
              ""
            ]
          }
        }
      ]
    },
    {
      "name": "CondicaoPagamento",
      "item": [
        {
          "name": "BuscaTodasCondicoesPagamento",
          "event": [
            {
              "listen": "test",
              "script": {
                "exec": [
                  "pm.test(\"Successful POST request\", function () {",
                  "    pm.expect(pm.response.code).to.be.oneOf([200,201,202]);",
                  "});"
                ],
                "type": "text/javascript"
              }
            }
          ],
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{application-token}}",
                "type": "text"
              },
              {
                "key": "CompanyToken",
                "value": "{{company-token}}",
                "type": "text"
              },
              {
                "key": "ContentType",
                "value": "application/json",
                "type": "text"
              }
            ],
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v1/condicoes_pagamento?alterado_apos={{$timestamp}}",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v1",
                "condicoes_pagamento"
              ],
              "query": [
                {
                  "key": "alterado_apos",
                  "value": "{{$timestamp}}"
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "BuscaUmaCondicaoPagamento",
          "event": [
            {
              "listen": "test",
              "script": {
                "exec": [
                  "pm.test(\"Successful POST request\", function () {",
                  "    pm.expect(pm.response.code).to.be.oneOf([200,201,202]);",
                  "});"
                ],
                "type": "text/javascript"
              }
            }
          ],
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{application-token}}",
                "type": "text"
              },
              {
                "key": "CompanyToken",
                "value": "{{company-token}}",
                "type": "text"
              },
              {
                "key": "ContentType",
                "value": "application/json",
                "type": "text"
              }
            ],
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v1/condicoes_pagamento/{{condicao_pagamento_id}}",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v1",
                "condicoes_pagamento",
                "{{condicao_pagamento_id}}"
              ]
            }
          },
          "response": []
        },
        {
          "name": "IncluiNovaCondicaoPagamento",
          "event": [
            {
              "listen": "test",
              "script": {
                "exec": [
                  "pm.test(\"Successful POST request\", function () {",
                  "    pm.expect(pm.response.code).to.be.oneOf([200,201,202]);",
                  "});",
                  "",
                  "pm.environment.set(\"condicao_pagamento_id\", postman.getResponseHeader(\"MeusPedidosID\"));",
                  "",
                  ""
                ],
                "type": "text/javascript",
                "packages": {},
                "requests": {}
              }
            }
          ],
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{application-token}}",
                "type": "text"
              },
              {
                "key": "CompanyToken",
                "value": "{{company-token}}",
                "type": "text"
              },
              {
                "key": "ContentType",
                "value": "application/json",
                "type": "text"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n     \"nome\": \"30/60/90\",\n     \"valor_minimo\": null,\n     \"excluido\": false\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v1/condicoes_pagamento",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v1",
                "condicoes_pagamento"
              ]
            }
          },
          "response": []
        },
        {
          "name": "AlteraCondicaoPagamento",
          "event": [
            {
              "listen": "test",
              "script": {
                "exec": [
                  "pm.test(\"Successful POST request\", function () {",
                  "    pm.expect(pm.response.code).to.be.oneOf([200,201,202]);",
                  "});"
                ],
                "type": "text/javascript",
                "packages": {},
                "requests": {}
              }
            }
          ],
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{application-token}}",
                "type": "text"
              },
              {
                "key": "CompanyToken",
                "value": "{{company-token}}",
                "type": "text"
              },
              {
                "key": "ContentType",
                "value": "application/json",
                "type": "text"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n     \"nome\": \"30/60/90\",\n     \"valor_minimo\": 1.000,\n     \"excluido\": false\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v1/condicoes_pagamento/{{condicao_pagamento_id}}",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v1",
                "condicoes_pagamento",
                "{{condicao_pagamento_id}}"
              ]
            }
          },
          "response": []
        }
      ],
      "event": [
        {
          "listen": "prerequest",
          "script": {
            "type": "text/javascript",
            "exec": [
              ""
            ]
          }
        },
        {
          "listen": "test",
          "script": {
            "type": "text/javascript",
            "exec": [
              ""
            ]
          }
        }
      ]
    },
    {
      "name": "CondicaoPagamentoCliente",
      "item": [
        {
          "name": "VincularClienteCondicaoPagamento",
          "event": [
            {
              "listen": "test",
              "script": {
                "exec": [
                  "pm.test(\"Successful POST request\", function () {",
                  "    pm.expect(pm.response.code).to.be.oneOf([200,201,202]);",
                  "});"
                ],
                "type": "text/javascript"
              }
            }
          ],
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{application-token}}",
                "type": "text"
              },
              {
                "key": "CompanyToken",
                "value": "{{company-token}}",
                "type": "text"
              },
              {
                "key": "ContentType",
                "value": "application/json",
                "type": "text"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n     \"cliente_id\": {{cliente_id}},\n     \"condicoes_pagamento_liberadas\": [\n          {{condicao_pagamento_id}}\n     ]\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v1/clientes_condicoes_pagamento",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v1",
                "clientes_condicoes_pagamento"
              ]
            }
          },
          "response": []
        },
        {
          "name": "LiberarTodasCondicoesPagamentoCliente",
          "event": [
            {
              "listen": "test",
              "script": {
                "exec": [
                  "pm.test(\"Successful POST request\", function () {",
                  "    pm.expect(pm.response.code).to.be.oneOf([200,201,202]);",
                  "});"
                ],
                "type": "text/javascript"
              }
            }
          ],
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{application-token}}",
                "type": "text"
              },
              {
                "key": "CompanyToken",
                "value": "{{company-token}}",
                "type": "text"
              },
              {
                "key": "ContentType",
                "value": "application/json",
                "type": "text"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n     \"cliente_id\": {{cliente_id}}\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v1/clientes_condicoes_pagamento/liberar_todas",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v1",
                "clientes_condicoes_pagamento",
                "liberar_todas"
              ]
            }
          },
          "response": []
        }
      ]
    },
    {
      "name": "Transportadora",
      "item": [
        {
          "name": "BuscaTodasTransportadoras",
          "event": [
            {
              "listen": "test",
              "script": {
                "exec": [
                  "pm.test(\"Successful POST request\", function () {",
                  "    pm.expect(pm.response.code).to.be.oneOf([200,201,202]);",
                  "});"
                ],
                "type": "text/javascript"
              }
            }
          ],
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{application-token}}",
                "type": "text"
              },
              {
                "key": "CompanyToken",
                "value": "{{company-token}}",
                "type": "text"
              },
              {
                "key": "ContentType",
                "value": "application/json",
                "type": "text"
              }
            ],
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v1/transportadoras?alterado_apos={{$timestamp}}",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v1",
                "transportadoras"
              ],
              "query": [
                {
                  "key": "alterado_apos",
                  "value": "{{$timestamp}}"
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "BuscaUmaTransportadora",
          "event": [
            {
              "listen": "test",
              "script": {
                "exec": [
                  "pm.test(\"Successful POST request\", function () {",
                  "    pm.expect(pm.response.code).to.be.oneOf([200,201,202]);",
                  "});"
                ],
                "type": "text/javascript"
              }
            }
          ],
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{application-token}}",
                "type": "text"
              },
              {
                "key": "CompanyToken",
                "value": "{{company-token}}",
                "type": "text"
              },
              {
                "key": "ContentType",
                "value": "application/json",
                "type": "text"
              }
            ],
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v1/transportadoras/{{transportadora_id}}",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v1",
                "transportadoras",
                "{{transportadora_id}}"
              ]
            }
          },
          "response": []
        },
        {
          "name": "IncluiNovaTransportadora",
          "event": [
            {
              "listen": "test",
              "script": {
                "exec": [
                  "pm.test(\"Successful POST request\", function () {",
                  "    pm.expect(pm.response.code).to.be.oneOf([200,201,202]);",
                  "});",
                  "",
                  "pm.environment.set(\"transportadora_id\", postman.getResponseHeader(\"MeusPedidosID\"));",
                  "",
                  ""
                ],
                "type": "text/javascript",
                "packages": {},
                "requests": {}
              }
            }
          ],
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{application-token}}",
                "type": "text"
              },
              {
                "key": "CompanyToken",
                "value": "{{company-token}}",
                "type": "text"
              },
              {
                "key": "ContentType",
                "value": "application/json",
                "type": "text"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n     \"nome\": \"Transportadora X\",\n     \"cidade\": \"Joinville\",\n     \"estado\": \"SC\",\n     \"informacoes_adicionais\": \"Ponto de Coleta: XX XXXXX\",\n     \"telefones\": [\n          {\n               \"numero\": \"48 99999-9999\",\n               \"tipo\": \"T\"\n          }\n     ],\n     \"excluido\": false\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v1/transportadoras",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v1",
                "transportadoras"
              ]
            }
          },
          "response": []
        },
        {
          "name": "AlteraTransportadora",
          "event": [
            {
              "listen": "test",
              "script": {
                "exec": [
                  "pm.test(\"Successful POST request\", function () {",
                  "    pm.expect(pm.response.code).to.be.oneOf([200,201,202]);",
                  "});"
                ],
                "type": "text/javascript",
                "packages": {},
                "requests": {}
              }
            }
          ],
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{application-token}}",
                "type": "text"
              },
              {
                "key": "CompanyToken",
                "value": "{{company-token}}",
                "type": "text"
              },
              {
                "key": "ContentType",
                "value": "application/json",
                "type": "text"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n     \"nome\": \"Transportadora X - Alterada\",\n     \"cidade\": \"Joinville\",\n     \"estado\": \"SC\",\n     \"informacoes_adicionais\": \"Ponto de Coleta: XX XXXXX\",\n     \"telefones\": [\n          {\n               \"numero\": \"48 99999-9999\",\n               \"tipo\": \"T\"\n          }\n     ],\n     \"excluido\": true\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v1/transportadoras/{{transportadora_id}}",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v1",
                "transportadoras",
                "{{transportadora_id}}"
              ]
            }
          },
          "response": []
        }
      ]
    },
    {
      "name": "ConfiguracoesICMSST",
      "item": [
        {
          "name": "BuscaTodasConfiguracoesICMSST",
          "event": [
            {
              "listen": "test",
              "script": {
                "exec": [
                  "pm.test(\"Successful POST request\", function () {",
                  "    pm.expect(pm.response.code).to.be.oneOf([200,201,202]);",
                  "});"
                ],
                "type": "text/javascript"
              }
            }
          ],
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{application-token}}",
                "type": "text"
              },
              {
                "key": "CompanyToken",
                "value": "{{company-token}}",
                "type": "text"
              },
              {
                "key": "ContentType",
                "value": "application/json",
                "type": "text"
              }
            ],
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v1/configuracoes_icms_st?alterado_apos={{$timestamp}}",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v1",
                "configuracoes_icms_st"
              ],
              "query": [
                {
                  "key": "alterado_apos",
                  "value": "{{$timestamp}}"
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "BuscaUmaConfiguracoesICMSST",
          "event": [
            {
              "listen": "test",
              "script": {
                "exec": [
                  "pm.test(\"Successful POST request\", function () {",
                  "    pm.expect(pm.response.code).to.be.oneOf([200,201,202]);",
                  "});"
                ],
                "type": "text/javascript"
              }
            }
          ],
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{application-token}}",
                "type": "text"
              },
              {
                "key": "CompanyToken",
                "value": "{{company-token}}",
                "type": "text"
              },
              {
                "key": "ContentType",
                "value": "application/json",
                "type": "text"
              }
            ],
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v1/configuracoes_icms_st/{{configuracao_icms_st_id}}",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v1",
                "configuracoes_icms_st",
                "{{configuracao_icms_st_id}}"
              ]
            }
          },
          "response": []
        },
        {
          "name": "IncluiNovaConfiguracoesICMSST",
          "event": [
            {
              "listen": "test",
              "script": {
                "exec": [
                  "pm.test(\"Successful POST request\", function () {",
                  "    pm.expect(pm.response.code).to.be.oneOf([200,201,202]);",
                  "});",
                  "",
                  "pm.environment.set(\"configuracao_icms_st_id\", postman.getResponseHeader(\"MeusPedidosID\"));",
                  "",
                  ""
                ],
                "type": "text/javascript",
                "packages": {},
                "requests": {}
              }
            }
          ],
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{application-token}}",
                "type": "text"
              },
              {
                "key": "CompanyToken",
                "value": "{{company-token}}",
                "type": "text"
              },
              {
                "key": "ContentType",
                "value": "application/json",
                "type": "text"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n     \"codigo_ncm\": \"00000000\",\n     \"icms_credito\": 12,\n     \"icms_destino\": 18,\n     \"estado_destino\": \"SC\",\n     \"nome_excecao_fiscal\": null,\n     \"valor_mva\": 5,\n     \"valor_pmc\": null,\n     \"tipo_st\": \"MVA\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v1/configuracoes_icms_st",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v1",
                "configuracoes_icms_st"
              ]
            }
          },
          "response": []
        },
        {
          "name": "ExcluiConfiguracoesICMSST",
          "event": [
            {
              "listen": "test",
              "script": {
                "exec": [
                  "pm.test(\"Successful POST request\", function () {",
                  "    pm.expect(pm.response.code).to.be.oneOf([200,201,202]);",
                  "});"
                ],
                "type": "text/javascript"
              }
            }
          ],
          "request": {
            "method": "DELETE",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{application-token}}",
                "type": "text"
              },
              {
                "key": "CompanyToken",
                "value": "{{company-token}}",
                "type": "text"
              },
              {
                "key": "ContentType",
                "value": "application/json",
                "type": "text"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": ""
            },
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v1/configuracoes_icms_st/{{configuracao_icms_st_id}}",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v1",
                "configuracoes_icms_st",
                "{{configuracao_icms_st_id}}"
              ]
            }
          },
          "response": []
        }
      ],
      "event": [
        {
          "listen": "prerequest",
          "script": {
            "type": "text/javascript",
            "exec": [
              ""
            ]
          }
        },
        {
          "listen": "test",
          "script": {
            "type": "text/javascript",
            "exec": [
              ""
            ]
          }
        }
      ]
    },
    {
      "name": "Pagamentos",
      "item": [
        {
          "name": "BuscaTodosPagamentos",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{application-token}}",
                "type": "text"
              },
              {
                "key": "CompanyToken",
                "value": "{{company-token}}",
                "type": "text"
              },
              {
                "key": "ContentType",
                "value": "application/json",
                "type": "text"
              }
            ],
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v1/pagamentos?alterado_apos={{$timestamp}}",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v1",
                "pagamentos"
              ],
              "query": [
                {
                  "key": "alterado_apos",
                  "value": "{{$timestamp}}"
                }
              ]
            }
          },
          "response": []
        }
      ]
    },
    {
      "name": "Promoções",
      "item": [
        {
          "name": "BuscarTodasPromoções",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{application-token}}",
                "type": "text"
              },
              {
                "key": "CompanyToken",
                "value": "{{company-token}}",
                "type": "text"
              },
              {
                "key": "ContentType",
                "value": "application/json",
                "type": "text"
              }
            ],
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v1/promocoes?alterado_apos={{$timestamp}}",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v1",
                "promocoes"
              ],
              "query": [
                {
                  "key": "alterado_apos",
                  "value": "{{$timestamp}}"
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "BuscarUmaPromoção",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{application-token}}",
                "type": "text"
              },
              {
                "key": "CompanyToken",
                "value": "{{company-token}}",
                "type": "text"
              },
              {
                "key": "ContentType",
                "value": "application/json",
                "type": "text"
              }
            ],
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v1/promocoes/{{promocao_id}}",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v1",
                "promocoes",
                "{{promocao_id}}"
              ]
            }
          },
          "response": []
        },
        {
          "name": "IncluirNovaPromoção",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{application-token}}",
                "type": "text"
              },
              {
                "key": "CompanyToken",
                "value": "{{company-token}}",
                "type": "text"
              },
              {
                "key": "ContentType",
                "value": "application/json",
                "type": "text"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n    \"representada_id\": {{representada_id}},\n    \"nome\": \"Festa Junina\",\n    \"slug\": \"de076b1d-4471-4d03-afca-e53be93909e0\",\n    \"data_inicial\": \"2026-06-01\",\n    \"data_final\": \"2026-06-30\",\n    \"excluido\": false,\n    \"regras\": [\n        {\n            \"produto_id\": {{produto_id}},\n            \"desconto\": 10\n        }\n    ]\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v1/promocoes",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v1",
                "promocoes"
              ]
            }
          },
          "response": []
        },
        {
          "name": "AlterarPromoção",
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{application-token}}",
                "type": "text"
              },
              {
                "key": "CompanyToken",
                "value": "{{company-token}}",
                "type": "text"
              },
              {
                "key": "ContentType",
                "value": "application/json",
                "type": "text"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n     \"representada_id\": {{representada_id}},\n     \"nome\": \"Festa Junina/Julina\",\n     \"slug\": \"de076b1d-4471-4d03-afca-e53be93909e0\",\n     \"data_inicial\": \"2026-06-01\",\n     \"data_final\": \"2026-07-30\",\n     \"excluido\": false,\n     \"regras\": [\n          {\n               \"regra_id\": {{regra_id}},\n               \"produto_id\": {{produto_id}},\n               \"desconto\": 15\n          }\n     ]\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v1/promocoes/{{promocao_id}}",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v1",
                "promocoes",
                "{{promocao_id}}"
              ]
            }
          },
          "response": []
        }
      ]
    },
    {
      "name": "Políticas Comerciais",
      "item": [
        {
          "name": "BuscarTodasPoliticasComerciais",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{application-token}}",
                "type": "text"
              },
              {
                "key": "CompanyToken",
                "value": "{{company-token}}",
                "type": "text"
              },
              {
                "key": "ContentType",
                "value": "application/json",
                "type": "text"
              }
            ],
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v1/politicas_comerciais?alterado_apos={{$timestamp}}",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v1",
                "politicas_comerciais"
              ],
              "query": [
                {
                  "key": "alterado_apos",
                  "value": "{{$timestamp}}"
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "BuscarUmaPoliticaComercial",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{application-token}}",
                "type": "text"
              },
              {
                "key": "CompanyToken",
                "value": "{{company-token}}",
                "type": "text"
              },
              {
                "key": "ContentType",
                "value": "application/json",
                "type": "text"
              }
            ],
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v1/politicas_comerciais/{{politica_comercial_id}}",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v1",
                "politicas_comerciais",
                "{{politica_comercial_id}}"
              ]
            }
          },
          "response": []
        }
      ]
    },
    {
      "name": "Saldo Flex",
      "item": [
        {
          "name": "BuscaTodasContasCorrentes",
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{application-token}}",
                "type": "text"
              },
              {
                "key": "CompanyToken",
                "value": "{{company-token}}",
                "type": "text"
              },
              {
                "key": "ContentType",
                "value": "application/json",
                "type": "text"
              }
            ],
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v1/saldo_flex?alterado_apos={{$timestamp}}",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v1",
                "saldo_flex"
              ],
              "query": [
                {
                  "key": "alterado_apos",
                  "value": "{{$timestamp}}"
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "IncluiLancalmentoContaCorrente",
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{application-token}}",
                "type": "text"
              },
              {
                "key": "CompanyToken",
                "value": "{{company-token}}",
                "type": "text"
              },
              {
                "key": "ContentType",
                "value": "application/json",
                "type": "text"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n    \"colaborador_id\": {{usuario_id}},\n    \"valor_movimentado\": 100,\n    \"observacao\": \"Bônus\"\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v1/saldo_flex",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v1",
                "saldo_flex"
              ]
            }
          },
          "response": []
        }
      ]
    },
    {
      "name": "Metas",
      "item": [
        {
          "name": "BuscaTodasMetas",
          "protocolProfileBehavior": {
            "followRedirects": true,
            "disableUrlEncoding": false,
            "disableCookies": false
          },
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{_['application-token']}}"
              },
              {
                "key": "CompanyToken",
                "value": "{{_['company-token']}}"
              },
              {
                "key": "ContentType",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v1/metas?alterado_apos={{$timestamp}}",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v1",
                "metas"
              ],
              "query": [
                {
                  "key": "alterado_apos",
                  "value": "{{$timestamp}}"
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "IncluiNovaMeta",
          "protocolProfileBehavior": {
            "followRedirects": true,
            "disableUrlEncoding": false,
            "disableCookies": false
          },
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{_['application-token']}}"
              },
              {
                "key": "CompanyToken",
                "value": "{{_['company-token']}}"
              },
              {
                "key": "ContentType",
                "value": "application/json"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "[\n  {\n    \"representada_id\": \"1234\",\n    \"colaborador_id\": \"123\",\n    \"mes\": \"07\",\n    \"ano\": \"2026\",\n    \"valor\": 15000\n  }\n]",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v1/metas",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v1",
                "metas"
              ]
            }
          },
          "response": []
        },
        {
          "name": "AlteraMeta",
          "protocolProfileBehavior": {
            "followRedirects": true,
            "disableUrlEncoding": false,
            "disableCookies": false
          },
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{_['application-token']}}"
              },
              {
                "key": "CompanyToken",
                "value": "{{_['company-token']}}"
              },
              {
                "key": "ContentType",
                "value": "application/json"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "[\n  {\n    \"representada_id\": \"1234\",\n    \"colaborador_id\": \"123\",\n    \"mes\": \"07\",\n    \"ano\": \"2026\",\n    \"valor\": 16000\n  }\n]",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v1/metas",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v1",
                "metas"
              ]
            }
          },
          "response": []
        }
      ]
    },
    {
      "name": "Usuarios",
      "item": [
        {
          "name": "BuscaTodosVendedores",
          "event": [
            {
              "listen": "test",
              "script": {
                "exec": [
                  "var jsonData = JSON.parse(responseBody);",
                  "for(var item in jsonData)",
                  "{",
                  "    var user = jsonData[item];",
                  "    if(!user.administrador)",
                  "    {",
                  "        pm.environment.set(\"usuario_id\", user.id);",
                  "        break;",
                  "    }",
                  "}",
                  "",
                  "pm.test(\"Successful POST request\", function () {",
                  "    pm.expect(pm.response.code).to.be.oneOf([200,201,202]);",
                  "});",
                  ""
                ],
                "type": "text/javascript"
              }
            }
          ],
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{application-token}}",
                "type": "text"
              },
              {
                "key": "CompanyToken",
                "value": "{{company-token}}",
                "type": "text"
              },
              {
                "key": "ContentType",
                "value": "application/json",
                "type": "text"
              }
            ],
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v1/usuarios?alterado_apos={{$timestamp}}",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v1",
                "usuarios"
              ],
              "query": [
                {
                  "key": "alterado_apos",
                  "value": "{{$timestamp}}"
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "BuscaUmVendedor",
          "event": [
            {
              "listen": "test",
              "script": {
                "exec": [
                  "pm.test(\"Successful POST request\", function () {",
                  "    pm.expect(pm.response.code).to.be.oneOf([200,201,202]);",
                  "});"
                ],
                "type": "text/javascript"
              }
            }
          ],
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{application-token}}",
                "type": "text"
              },
              {
                "key": "CompanyToken",
                "value": "{{company-token}}",
                "type": "text"
              },
              {
                "key": "ContentType",
                "value": "application/json",
                "type": "text"
              }
            ],
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v1/usuarios/{{usuario_id}}",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v1",
                "usuarios",
                "{{usuario_id}}"
              ]
            }
          },
          "response": []
        }
      ]
    },
    {
      "name": "UsuarioCliente",
      "item": [
        {
          "name": "BuscaTodasRegrasDeLiberacao",
          "event": [
            {
              "listen": "test",
              "script": {
                "exec": [
                  "pm.test(\"Successful POST request\", function () {",
                  "    pm.expect(pm.response.code).to.be.oneOf([200,201,202]);",
                  "});"
                ],
                "type": "text/javascript"
              }
            }
          ],
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{application-token}}",
                "type": "text"
              },
              {
                "key": "CompanyToken",
                "value": "{{company-token}}",
                "type": "text"
              },
              {
                "key": "ContentType",
                "value": "application/json",
                "type": "text"
              }
            ],
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v1/usuarios_clientes?alterado_apos={{$timestamp}}",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v1",
                "usuarios_clientes"
              ],
              "query": [
                {
                  "key": "alterado_apos",
                  "value": "{{$timestamp}}"
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "BuscaRegraDeCliente",
          "event": [
            {
              "listen": "test",
              "script": {
                "exec": [
                  "pm.test(\"Successful POST request\", function () {",
                  "    pm.expect(pm.response.code).to.be.oneOf([200,201,202]);",
                  "});"
                ],
                "type": "text/javascript"
              }
            }
          ],
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{application-token}}",
                "type": "text"
              },
              {
                "key": "CompanyToken",
                "value": "{{company-token}}",
                "type": "text"
              },
              {
                "key": "ContentType",
                "value": "application/json",
                "type": "text"
              }
            ],
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v1/usuarios_clientes/cliente/{{cliente_id}}",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v1",
                "usuarios_clientes",
                "cliente",
                "{{cliente_id}}"
              ]
            }
          },
          "response": []
        },
        {
          "name": "BuscaRegraDeUsuario",
          "event": [
            {
              "listen": "test",
              "script": {
                "exec": [
                  "pm.test(\"Successful POST request\", function () {",
                  "    pm.expect(pm.response.code).to.be.oneOf([200,201,202]);",
                  "});"
                ],
                "type": "text/javascript"
              }
            }
          ],
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{application-token}}",
                "type": "text"
              },
              {
                "key": "CompanyToken",
                "value": "{{company-token}}",
                "type": "text"
              },
              {
                "key": "ContentType",
                "value": "application/json",
                "type": "text"
              }
            ],
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v1/usuarios_clientes/usuario/{{usuario_id}}",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v1",
                "usuarios_clientes",
                "usuario",
                "{{usuario_id}}"
              ]
            }
          },
          "response": []
        },
        {
          "name": "BuscaRegraDeClienteParaUmUsuario",
          "event": [
            {
              "listen": "test",
              "script": {
                "exec": [
                  "pm.test(\"Successful POST request\", function () {",
                  "    pm.expect(pm.response.code).to.be.oneOf([200,201,202]);",
                  "});"
                ],
                "type": "text/javascript"
              }
            }
          ],
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{application-token}}",
                "type": "text"
              },
              {
                "key": "CompanyToken",
                "value": "{{company-token}}",
                "type": "text"
              },
              {
                "key": "ContentType",
                "value": "application/json",
                "type": "text"
              }
            ],
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v1/usuarios_clientes/usuario/{{usuario_id}}/cliente/{{cliente_id}}",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v1",
                "usuarios_clientes",
                "usuario",
                "{{usuario_id}}",
                "cliente",
                "{{cliente_id}}"
              ]
            }
          },
          "response": []
        },
        {
          "name": "IncluiNovaRegraDeLiberacao",
          "event": [
            {
              "listen": "test",
              "script": {
                "exec": [
                  "pm.test(\"Successful POST request\", function () {",
                  "    pm.expect(pm.response.code).to.be.oneOf([200,201,202]);",
                  "});",
                  "pm.environment.set(\"pedido_id\", postman.getResponseHeader(\"MeusPedidosID\"));"
                ],
                "type": "text/javascript"
              }
            }
          ],
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{application-token}}",
                "type": "text"
              },
              {
                "key": "CompanyToken",
                "value": "{{company-token}}",
                "type": "text"
              },
              {
                "key": "ContentType",
                "value": "application/json",
                "type": "text"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n     \"cliente_id\": {{cliente_id}},\n     \"usuario_id\": {{usuario_id}},\n     \"liberado\": {{$randomBoolean}}\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v1/usuarios_clientes/",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v1",
                "usuarios_clientes",
                ""
              ]
            }
          },
          "response": []
        }
      ]
    },
    {
      "name": "Eventos",
      "item": [
        {
          "name": "BuscaTodosEventos",
          "protocolProfileBehavior": {
            "followRedirects": true,
            "disableUrlEncoding": false,
            "disableCookies": false
          },
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{_['application-token']}}"
              },
              {
                "key": "CompanyToken",
                "value": "{{_['company-token']}}"
              },
              {
                "key": "ContentType",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v1/eventos?alterado_apos={{$timestamp}}",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v1",
                "eventos"
              ],
              "query": [
                {
                  "key": "alterado_apos",
                  "value": "{{$timestamp}}"
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "BuscaUmEvento",
          "protocolProfileBehavior": {
            "followRedirects": true,
            "disableUrlEncoding": false,
            "disableCookies": false
          },
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{_['application-token']}}"
              },
              {
                "key": "CompanyToken",
                "value": "{{_['company-token']}}"
              },
              {
                "key": "ContentType",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v1/eventos/{{eventos_id}}",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v1",
                "eventos",
                "{{eventos_id}}"
              ]
            }
          },
          "response": []
        },
        {
          "name": "IncluiEventosEmLote",
          "protocolProfileBehavior": {
            "followRedirects": true,
            "disableUrlEncoding": false,
            "disableCookies": false
          },
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{_['application-token']}}"
              },
              {
                "key": "CompanyToken",
                "value": "{{_['company-token']}}"
              },
              {
                "key": "ContentType",
                "value": "application/json"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "[\n  {\n    \"data_evento\": \"2026-07-01 15:00:00\",\n    \"tipo\": 1,\n    \"colaborador_id\": 123,\n    \"cliente_id\": 1234,\n    \"descricao\": \"Visita Presencial\",\n    \"realizado\": false,\n    \"excluido\": false\n  }\n]",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v1/eventos",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v1",
                "eventos"
              ]
            }
          },
          "response": []
        },
        {
          "name": "AlteraEventosEmLote",
          "protocolProfileBehavior": {
            "followRedirects": true,
            "disableUrlEncoding": false,
            "disableCookies": false
          },
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{_['application-token']}}"
              },
              {
                "key": "CompanyToken",
                "value": "{{_['company-token']}}"
              },
              {
                "key": "ContentType",
                "value": "application/json"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "[\n  {\n    \"id\": {{eventos_id}},\n\t\t\"data_evento\": \"2026-07-01\",\n    \"tipo\": 1,\n    \"colaborador_id\": 123,\n    \"cliente_id\": 1234,\n    \"descricao\": \"Visita Presencial - Alterado\",\n    \"realizado\": true,\n    \"excluido\": false\n  }\n]",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v1/eventos",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v1",
                "eventos"
              ]
            }
          },
          "response": []
        },
        {
          "name": "ExcluiEventosEmLote",
          "protocolProfileBehavior": {
            "followRedirects": true,
            "disableUrlEncoding": false,
            "disableCookies": false
          },
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{_['application-token']}}"
              },
              {
                "key": "CompanyToken",
                "value": "{{_['company-token']}}"
              },
              {
                "key": "ContentType",
                "value": "application/json"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "[\n  {\n    \"id\": {{eventos_id}},\n    \"excluido\": true\n  },\n  {\n    \"id\": {{eventos_id}},\n    \"excluido\": true\n  }\n]",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v1/eventos",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v1",
                "eventos"
              ]
            }
          },
          "response": []
        }
      ]
    },
    {
      "name": "Atendimentos",
      "item": [
        {
          "name": "BuscaTodosAtendimentos",
          "protocolProfileBehavior": {
            "followRedirects": true,
            "disableUrlEncoding": false,
            "disableCookies": false
          },
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{_['application-token']}}"
              },
              {
                "key": "CompanyToken",
                "value": "{{_['company-token']}}"
              },
              {
                "key": "ContentType",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v1/atendimentos?alterado_apos={{$timestamp}}",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v1",
                "atendimentos"
              ],
              "query": [
                {
                  "key": "alterado_apos",
                  "value": "{{$timestamp}}"
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "BuscaUmAtendimento",
          "protocolProfileBehavior": {
            "followRedirects": true,
            "disableUrlEncoding": false,
            "disableCookies": false
          },
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{_['application-token']}}"
              },
              {
                "key": "CompanyToken",
                "value": "{{_['company-token']}}"
              },
              {
                "key": "ContentType",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v1/atendimentos/{{atendimentos_id}}",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v1",
                "atendimentos",
                "{{atendimentos_id}}"
              ]
            }
          },
          "response": []
        },
        {
          "name": "IncluiAtendimentosEmLote",
          "protocolProfileBehavior": {
            "followRedirects": true,
            "disableUrlEncoding": false,
            "disableCookies": false
          },
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{_['application-token']}}"
              },
              {
                "key": "CompanyToken",
                "value": "{{_['company-token']}}"
              },
              {
                "key": "ContentType",
                "value": "application/json"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "[\n\t{\n\t\t\"tipo\": 5,\n\t\t\"cliente_id\": 123,\n\t\t\"data_inicio\": \"2026-07-01 15:00:00\",\n\t\t\"data_fim\": null,\n\t\t\"colaborador_id\": 1234,\n\t\t\"descricao\": \"Contato WhatsApp\",\n\t\t\"evento_id\": null,\n\t\t\"resultado_id\": null,\n\t\t\"motivo\": \"Reativação\",\n\t\t\"excluido\": false\n\t}\n]",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v1/atendimentos",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v1",
                "atendimentos"
              ]
            }
          },
          "response": []
        },
        {
          "name": "AlteraAtendimentosEmLote",
          "protocolProfileBehavior": {
            "followRedirects": true,
            "disableUrlEncoding": false,
            "disableCookies": false
          },
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{_['application-token']}}"
              },
              {
                "key": "CompanyToken",
                "value": "{{_['company-token']}}"
              },
              {
                "key": "ContentType",
                "value": "application/json"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "[\n\t{\n\t\t\"id\": {{atendimentos_id}},\n\t\t\"tipo\": 5,\n\t\t\"cliente_id\": 123,\n\t\t\"data_inicio\": \"2026-07-01 15:00:00\",\n\t\t\"data_fim\": \"2026-07-01 17:00:00\",\n\t\t\"colaborador_id\": 1234,\n\t\t\"descricao\": \"Contato WhatsApp - Alterado\",\n\t\t\"evento_id\": null,\n\t\t\"resultado_id\": null,\n\t\t\"motivo\": \"Reativação\",\n\t\t\"excluido\": false\n\t}\n]",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v1/atendimentos",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v1",
                "atendimentos"
              ]
            }
          },
          "response": []
        },
        {
          "name": "ExcluiAtendimentosEmLote",
          "protocolProfileBehavior": {
            "followRedirects": true,
            "disableUrlEncoding": false,
            "disableCookies": false
          },
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{_['application-token']}}"
              },
              {
                "key": "CompanyToken",
                "value": "{{_['company-token']}}"
              },
              {
                "key": "ContentType",
                "value": "application/json"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "[\n  {\n    \"id\": {{atendimentos_id}},\n    \"excluido\": true\n  },\n  {\n    \"id\": {{atendimentos_id}},\n    \"excluido\": true\n  }\n]",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v1/atendimentos",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v1",
                "atendimentos"
              ]
            }
          },
          "response": []
        }
      ]
    },
    {
      "name": "Funil",
      "item": [
        {
          "name": "BuscaTodosFunis",
          "protocolProfileBehavior": {
            "followRedirects": true,
            "disableUrlEncoding": false,
            "disableCookies": false
          },
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{_['application-token']}}"
              },
              {
                "key": "CompanyToken",
                "value": "{{_['company-token']}}"
              },
              {
                "key": "ContentType",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v1/funil?alterado_apos={{$timestamp}}",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v1",
                "funil"
              ],
              "query": [
                {
                  "key": "alterado_apos",
                  "value": "{{$timestamp}}"
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "BuscaUmFunil",
          "protocolProfileBehavior": {
            "followRedirects": true,
            "disableUrlEncoding": false,
            "disableCookies": false
          },
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{_['application-token']}}"
              },
              {
                "key": "CompanyToken",
                "value": "{{_['company-token']}}"
              },
              {
                "key": "ContentType",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v1/funil/{{funil_id}}",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v1",
                "funil",
                "{{funil_id}}"
              ]
            }
          },
          "response": []
        },
        {
          "name": "IncluiFunil",
          "protocolProfileBehavior": {
            "followRedirects": true,
            "disableUrlEncoding": false,
            "disableCookies": false
          },
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{_['application-token']}}"
              },
              {
                "key": "CompanyToken",
                "value": "{{_['company-token']}}"
              },
              {
                "key": "ContentType",
                "value": "application/json"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n    \"nome\": \"Funil de Vendas\",\n    \"excluido\": false\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v1/funil",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v1",
                "funil"
              ]
            }
          },
          "response": []
        },
        {
          "name": "AlteraFunil",
          "protocolProfileBehavior": {
            "followRedirects": true,
            "disableUrlEncoding": false,
            "disableCookies": false
          },
          "request": {
            "method": "PUT",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{_['application-token']}}"
              },
              {
                "key": "CompanyToken",
                "value": "{{_['company-token']}}"
              },
              {
                "key": "ContentType",
                "value": "application/json"
              },
              {
                "key": "Content-Type",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "{\n  \"nome\": \"Funil de Vendas - Alterado\", \n\t\"excluido\": true\n}",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v1/funil/{{funil_id}}",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v1",
                "funil",
                "{{funil_id}}"
              ]
            }
          },
          "response": []
        }
      ]
    },
    {
      "name": "Funil - Etapas",
      "item": [
        {
          "name": "BuscaTodasEtapasUmFunil",
          "protocolProfileBehavior": {
            "followRedirects": true,
            "disableUrlEncoding": false,
            "disableCookies": false
          },
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{_['application-token']}}"
              },
              {
                "key": "CompanyToken",
                "value": "{{_['company-token']}}"
              },
              {
                "key": "ContentType",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v1/funil/{{funil_id}}/etapas?alterado_apos={{$timestamp}}",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v1",
                "funil",
                "{{funil_id}}",
                "etapas"
              ],
              "query": [
                {
                  "key": "alterado_apos",
                  "value": "{{$timestamp}}"
                }
              ]
            }
          },
          "response": []
        }
      ]
    },
    {
      "name": "Funil - Motivos de Perda",
      "item": [
        {
          "name": "BuscaTodosMotivosPerdaUmFunil",
          "protocolProfileBehavior": {
            "followRedirects": true,
            "disableUrlEncoding": false,
            "disableCookies": false
          },
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{_['application-token']}}"
              },
              {
                "key": "CompanyToken",
                "value": "{{_['company-token']}}"
              },
              {
                "key": "ContentType",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v1/funil/{{funil_id}}/motivos_de_perda?alterado_apos={{$timestamp}}",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v1",
                "funil",
                "{{funil_id}}",
                "motivos_de_perda"
              ],
              "query": [
                {
                  "key": "alterado_apos",
                  "value": "{{$timestamp}}"
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "IncluiAlterarMotivosPerdaFunil",
          "protocolProfileBehavior": {
            "followRedirects": true,
            "disableUrlEncoding": false,
            "disableCookies": false
          },
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{_['application-token']}}"
              },
              {
                "key": "CompanyToken",
                "value": "{{_['company-token']}}"
              },
              {
                "key": "ContentType",
                "value": "application/json"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "[ \n\t{\n  \"id\": 1, /*se informado atualiza o registro existente*/\n\t\"nome\": \"Empresa Desativada\",\n\t\"excluido\": false\n\t}\n]",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v1/funil/{{funil_id}}/motivos_de_perda",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v1",
                "funil",
                "{{funil_id}}",
                "motivos_de_perda"
              ]
            }
          },
          "response": []
        }
      ]
    },
    {
      "name": "Funil - Oportunidades",
      "item": [
        {
          "name": "BuscaTodasOportunidadesUmFunil",
          "protocolProfileBehavior": {
            "followRedirects": true,
            "disableUrlEncoding": false,
            "disableCookies": false
          },
          "request": {
            "method": "GET",
            "header": [
              {
                "key": "ApplicationToken",
                "value": "{{_['application-token']}}"
              },
              {
                "key": "CompanyToken",
                "value": "{{_['company-token']}}"
              },
              {
                "key": "ContentType",
                "value": "application/json"
              }
            ],
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v1/funil/{{funil_id}}/oportunidades?alterado_apos={{$timestamp}}",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v1",
                "funil",
                "{{funil_id}}",
                "oportunidades"
              ],
              "query": [
                {
                  "key": "alterado_apos",
                  "value": "{{$timestamp}}"
                }
              ]
            }
          },
          "response": []
        },
        {
          "name": "IncluiAlterarOportunidadeFunil",
          "protocolProfileBehavior": {
            "followRedirects": true,
            "disableUrlEncoding": false,
            "disableCookies": false
          },
          "request": {
            "method": "POST",
            "header": [
              {
                "key": "ContentType",
                "value": "application/json"
              },
              {
                "key": "ApplicationToken",
                "value": "{{_['application-token']}}"
              },
              {
                "key": "CompanyToken",
                "value": "{{_['company-token']}}"
              }
            ],
            "body": {
              "mode": "raw",
              "raw": "[ \n\t{\n\t\t\"id\": 1, /*se informado atualiza o registro existente*/\n\t\t\"titulo\": \"Empresa X\",\n\t\t\"fase_id\": 1,\n\t\t\"cliente_id\": 123,\n\t\t\"colaborador_id\": 123,\n\t\t\"status\": 1,\n\t\t\"valor\": 100,\n\t\t\"pedido_id\": 1,\n\t\t\"motivo_perda_id\": null, \n\t\t\"observacao_resultado\": \"Venda realizada\"\n\t}\n]",
              "options": {
                "raw": {
                  "language": "json"
                }
              }
            },
            "url": {
              "raw": "https://{{ambiente}}.mercos.com/api/v1//funil/{{funil_id}}/oportunidades",
              "protocol": "https",
              "host": [
                "{{ambiente}}",
                "mercos",
                "com"
              ],
              "path": [
                "api",
                "v1",
                "",
                "funil",
                "{{funil_id}}",
                "oportunidades"
              ]
            }
          },
          "response": []
        }
      ]
    }
  ],
  "event": [
    {
      "listen": "prerequest",
      "script": {
        "type": "text/javascript",
        "exec": [
          ""
        ]
      }
    },
    {
      "listen": "test",
      "script": {
        "type": "text/javascript",
        "exec": [
          ""
        ]
      }
    }
  ],
  "variable": [
    {
      "key": "ambiente",
      "value": "sandbox"
    },
    {
      "key": "application-token",
      "value": ""
    },
    {
      "key": "company-token",
      "value": ""
    },
    {
      "key": "produto_id",
      "value": ""
    },
    {
      "key": "variacao_id",
      "value": ""
    }
  ]
}